<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>Hexo插件安装 | Jimmey-Jiang&#39;s Blog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="自用笔记：本文属于自用笔记，不做详解，仅供参考。在此记录自己已理解并开始遵循的前端代码规范。What How Why　　最近，使用Hexo遇到了很多问题，在设立进行整理。">
<meta name="keywords" content="Hexo">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo插件安装">
<meta property="og:url" content="http://Jimmey-Jiang.github.io/2015/12/27/Hexo/HexoPlug/index.html">
<meta property="og:site_name" content="Jimmey-Jiang&#39;s Blog">
<meta property="og:description" content="自用笔记：本文属于自用笔记，不做详解，仅供参考。在此记录自己已理解并开始遵循的前端代码规范。What How Why　　最近，使用Hexo遇到了很多问题，在设立进行整理。">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2017-07-28T10:54:48.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo插件安装">
<meta name="twitter:description" content="自用笔记：本文属于自用笔记，不做详解，仅供参考。在此记录自己已理解并开始遵循的前端代码规范。What How Why　　最近，使用Hexo遇到了很多问题，在设立进行整理。">
  
    <link rel="alternative" href="/atom.xml" title="Jimmey-Jiang&#39;s Blog" type="application/atom+xml">
  
  
    <link rel="icon" href="/img/favicon.png">
  
  
      <link rel="stylesheet" href="//cdn.bootcss.com/animate.css/3.5.0/animate.min.css">
  
  <link rel="stylesheet" href="/css/style.css">
  <link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
  
  
      <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  
  <!-- 加载特效 -->
    <script src="/js/pace.js"></script>
    <link href="/css/pace/pace-theme-flash.css" rel="stylesheet" />
  <script>
      var yiliaConfig = {
          rootUrl: '/',
          fancybox: true,
          animate: true,
          isHome: false,
          isPost: true,
          isArchive: false,
          isTag: false,
          isCategory: false,
          open_in_new: false
      }
  </script>
</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
    <header id="header" class="inner">
        <a href="/" class="profilepic">
            
            <img lazy-src="/img/head.jpg" class="js-avatar">
            
        </a>

        <hgroup>
          <h1 class="header-author"><a href="/" title="Hi Mate">安与生</a></h1>
        </hgroup>

        
        <p class="header-subtitle">城已成，兵不封，鼓不停，志不移，行不息</p>
        
        
            <form>
                <input type="text" class="st-default-search-input search" id="search" placeholder=" Search...">
            </form>
        
        
            <div id="switch-btn" class="switch-btn">
                <div class="icon">
                    <div class="icon-ctn">
                        <div class="icon-wrap icon-house" data-idx="0">
                            <div class="birdhouse"></div>
                            <div class="birdhouse_holes"></div>
                        </div>
                        <div class="icon-wrap icon-ribbon hide" data-idx="1">
                            <div class="ribbon"></div>
                        </div>
                        
                        <div class="icon-wrap icon-link hide" data-idx="2">
                            <div class="loopback_l"></div>
                            <div class="loopback_r"></div>
                        </div>
                        
                        
                        <div class="icon-wrap icon-me hide" data-idx="3">
                            <div class="user"></div>
                            <div class="shoulder"></div>
                        </div>
                        
                    </div>
                    
                </div>
                <div class="tips-box hide">
                    <div class="tips-arrow"></div>
                    <ul class="tips-inner">
                        <li>菜单</li>
                        <li>标签</li>
                        
                        <li>友情链接</li>
                        
                        
                        <li>关于我</li>
                        
                    </ul>
                </div>
            </div>
        

        <div id="switch-area" class="switch-area">
            <div class="switch-wrap">
                <section class="switch-part switch-part1">
                    <nav class="header-menu">
                        <ul>
                        
                            <li><a href="/archives">所有文章</a></li>
                        
                            <li><a href="/works">作品展示</a></li>
                        
                           <li><a href="/about">留言打卡</a></li>
                        
                            <li><a  target="_blank" href="https://tuchong.com/1496450/">摄影集展示</a></li>
                        
                        </ul>
                    </nav>
                    <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fl mail" target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=4trX0tXT19PV1aKTk8yBjY8" title="mail">mail</a>
                            
                                <a class="fl github" target="_blank" href="https://github.com/Jimmey-Jiang" title="github">github</a>
                            
                                <a class="fl zhihu" target="_blank" href="https://www.zhihu.com" title="zhihu">zhihu</a>
                            
                                <a class="fl weibo" target="_blank" href="http://weibo.com" title="weibo">weibo</a>
                            
                                <a class="fl google" target="_blank" href="http://i.youku.com" title="google">google</a>
                            
                                <a class="fl twitter" target="_blank" href="http://twitter.com" title="twitter">twitter</a>
                            
                                <a class="fl Instagram" target="_blank" href="https://www.instagram.com" title="Instagram">Instagram</a>
                            
                                <a class="fl linkedin" target="_blank" href="https://www.linkedin.com" title="linkedin">linkedin</a>
                            
                        </ul>
                    </nav>
                </section>
                
                
                <section class="switch-part switch-part2">
                    <div class="widget tagcloud" id="js-tagcloud">
                        <a href="/tags/Ajax/" style="font-size: 11.67px;">Ajax</a> <a href="/tags/CDN/" style="font-size: 10px;">CDN</a> <a href="/tags/CSS/" style="font-size: 18.33px;">CSS</a> <a href="/tags/CSS3/" style="font-size: 11.67px;">CSS3</a> <a href="/tags/Chrome/" style="font-size: 10px;">Chrome</a> <a href="/tags/Development/" style="font-size: 10px;">Development</a> <a href="/tags/Front-end-outline/" style="font-size: 10px;">Front end outline</a> <a href="/tags/FrontPlan/" style="font-size: 10px;">FrontPlan</a> <a href="/tags/Git/" style="font-size: 11.67px;">Git</a> <a href="/tags/Gulp/" style="font-size: 10px;">Gulp</a> <a href="/tags/HTML/" style="font-size: 13.33px;">HTML</a> <a href="/tags/Hack/" style="font-size: 10px;">Hack</a> <a href="/tags/Hexo/" style="font-size: 16.67px;">Hexo</a> <a href="/tags/Interview/" style="font-size: 10px;">Interview</a> <a href="/tags/JavaScript/" style="font-size: 13.33px;">JavaScript</a> <a href="/tags/Javascript/" style="font-size: 10px;">Javascript</a> <a href="/tags/Markdown/" style="font-size: 10px;">Markdown</a> <a href="/tags/Mobile/" style="font-size: 13.33px;">Mobile</a> <a href="/tags/NodeJs/" style="font-size: 10px;">NodeJs</a> <a href="/tags/OOCSS/" style="font-size: 10px;">OOCSS</a> <a href="/tags/React/" style="font-size: 10px;">React</a> <a href="/tags/ReactNative/" style="font-size: 20px;">ReactNative</a> <a href="/tags/Sass/" style="font-size: 10px;">Sass</a> <a href="/tags/Sublime/" style="font-size: 15px;">Sublime</a> <a href="/tags/Terminal/" style="font-size: 10px;">Terminal</a> <a href="/tags/Video/" style="font-size: 10px;">Video</a> <a href="/tags/Vue/" style="font-size: 15px;">Vue</a> <a href="/tags/WeChatSDK/" style="font-size: 10px;">WeChatSDK</a> <a href="/tags/rem/" style="font-size: 10px;">rem</a> <a href="/tags/window-7/" style="font-size: 10px;">window 7</a>
                    </div>
                </section>
                
                
                
                <section class="switch-part switch-part3">
                    <div id="js-friends">
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://MOxFIVE.github.io/">MOxFIVE</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://www.vsay.cn/">DoubleV</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://www.ccwebsite.com/">兮兮</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://blog.dandyweng.com/">翁天信</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://www.plqblog.com/views/index.php">潘利强</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://www.hankin.cn/">hankin</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="http://blog.waydrow.com/">waydrow</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="https://www.tangbc.com">TANGBC</a>
                    
                      <a target="_blank" class="main-nav-link switch-friends-link" href="https://www.w3ctrain.com/">Helkyle</a>
                    
                    </div>
                </section>
                

                
                
                <section class="switch-part switch-part4">
                
                    <div id="js-aboutme">城已成，兵不封，鼓不停，志不移，行不息</div>
                </section>
                
            </div>
        </div>
    </header>                
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
      <div class="overlay">
          <div class="slider-trigger"></div>
          <h1 class="header-author js-mobile-header hide"><a href="/" title="Me">安与生</a></h1>
      </div>
    <div class="intrude-less">
        <header id="header" class="inner">
            <a href="/" class="profilepic">
                
                    <img lazy-src="/img/head.jpg" class="js-avatar">
                
            </a>
            <hgroup>
              <h1 class="header-author"><a href="/" title="Me">安与生</a></h1>
            </hgroup>
            
            <p class="header-subtitle">城已成，兵不封，鼓不停，志不移，行不息</p>
            
            <nav class="header-menu">
                <ul>
                
                    <li><a href="/archives">所有文章</a></li>
                
                    <li><a href="/works">作品展示</a></li>
                
                   <li><a href="/about">留言打卡</a></li>
                
                    <li><a  target="_blank" href="https://tuchong.com/1496450/">摄影集展示</a></li>
                
                <div class="clearfix"></div>
                </ul>
            </nav>
            <nav class="header-nav">
                <div class="social">
                    
                        <a class="mail" target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=4trX0tXT19PV1aKTk8yBjY8" title="mail">mail</a>
                    
                        <a class="github" target="_blank" href="https://github.com/Jimmey-Jiang" title="github">github</a>
                    
                        <a class="zhihu" target="_blank" href="https://www.zhihu.com" title="zhihu">zhihu</a>
                    
                        <a class="weibo" target="_blank" href="http://weibo.com" title="weibo">weibo</a>
                    
                        <a class="google" target="_blank" href="http://i.youku.com" title="google">google</a>
                    
                        <a class="twitter" target="_blank" href="http://twitter.com" title="twitter">twitter</a>
                    
                        <a class="Instagram" target="_blank" href="https://www.instagram.com" title="Instagram">Instagram</a>
                    
                        <a class="linkedin" target="_blank" href="https://www.linkedin.com" title="linkedin">linkedin</a>
                    
                </div>
            </nav>
        </header>                
    </div>
</nav>
      <div class="body-wrap"><article id="post-Hexo/HexoPlug" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/2015/12/27/Hexo/HexoPlug/" class="article-date">
      <time datetime="2015-12-27T10:29:00.000Z" itemprop="datePublished">2015-12-27</time>
</a>
    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Hexo插件安装
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
    <div class="article-category tagcloud">
    <a class="article-category-link" href="/categories/Hexo/">Hexo</a>
    </div>

        
    <div class="article-tag tagcloud">
        <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Hexo/">Hexo</a></li></ul>
    </div>

        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
          
        <p>　　<strong>自用笔记：</strong>本文属于自用笔记，不做详解，仅供参考。在此记录自己已理解并开始遵循的前端代码规范。What How Why<br>　　最近，使用Hexo遇到了很多问题，在设立进行整理。</p>
<a id="more"></a>
<h2 id="同步instagram图片"><a href="#同步instagram图片" class="headerlink" title="同步instagram图片"></a>同步instagram图片</h2><blockquote>
<p>新建页面</p>
</blockquote>
<figure class="highlight routeros"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">执行命令：</div><div class="line">hexo new<span class="built_in"> page </span><span class="string">"instagram"</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改文件</p>
</blockquote>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div></pre></td><td class="code"><pre><div class="line"><span class="string">在目录yourBlog\source\instagram下，修改index.md内容为：</span></div><div class="line"></div><div class="line"><span class="meta">---</span></div><div class="line"><span class="attr">layout:</span> <span class="string">post</span></div><div class="line"><span class="attr">slug:</span> <span class="string">"instagram"</span></div><div class="line"><span class="attr">title:</span> <span class="string">"相册"</span></div><div class="line"><span class="attr">noDate:</span> <span class="string">"true"</span></div><div class="line"><span class="meta">---</span></div><div class="line"><span class="string">&lt;div</span> <span class="string">class="instagram"</span> <span class="string">data-client-id="a0d4bd</span>    <span class="string">ab154b4c689aff70602cb34a2c"</span> <span class="string">data-user-id="438522285"&gt;</span></div><div class="line">    <span class="string">&lt;a</span> <span class="string">href="http://instagram.com/litten225"</span> <span class="string">target="_blank"</span> <span class="string">class="open-ins"&gt;图片来自instagram，正在加载中…&lt;/a&gt;</span></div><div class="line"><span class="string">&lt;/div&gt;</span></div><div class="line"><span class="string">&lt;script</span> <span class="string">src="/js/jquery.lazyload.js"&gt;&lt;/script&gt;</span></div><div class="line"><span class="string">&lt;script</span> <span class="string">src="/js/instagram.js"&gt;&lt;/script&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>获取ID</p>
</blockquote>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div></pre></td><td class="code"><pre><div class="line">data-client-id：</div><div class="line">[<span class="string">注册新客户端</span>](<span class="link">http://instagram.com/developer/clients/manage/</span>)</div><div class="line">获取CLIENT ID：a0d4bdab154b4c689aff70602cb34a2c</div><div class="line">用client_id去换取token：</div><div class="line">在浏览器中请求：</div><div class="line"></div><div class="line"><span class="code">    https://instagram.com/oauth/authorize/?client_id=&#123;CLIENT_ID&#125;&amp;redirect_uri=&#123;REDIRECT_URI&#125;&amp;response_type=token</span></div><div class="line"><span class="code">    https://instagram.com/oauth/authorize/?client_id=a0d4bdab154b4c689aff70602cb34a2c&amp;redirect_uri=http://Jimmey-Jiang.github.io/&amp;response_type=token</span></div><div class="line"><span class="code">    花括号里面的值，对应上一步最终得到的client_id和自己设定的redirect_uri。</span></div><div class="line"><span class="code">    请求到的是一个授权页面，授权完毕后，则重定向到你的redirect_uri。</span></div><div class="line"><span class="code">    注意看授权成功后的url，hash部分会附带给你的token。至此，token成功获取，将至放在data-client-id。</span></div><div class="line"></div><div class="line">data-user-id：</div><div class="line"></div><div class="line">需要到[<span class="string">lookup-user-id</span>](<span class="link">http://jelled.com/instagram/lookup-user-id#</span>)填写用户名并查找。</div></pre></td></tr></table></figure>
<h2 id="分享按钮"><a href="#分享按钮" class="headerlink" title="分享按钮"></a>分享按钮</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div></pre></td><td class="code"><pre><div class="line"><span class="xml">以下代码是百度分享的页面24页面分享的代码，可以自行选择以下标签。</span></div><div class="line"></div><div class="line">配置</div><div class="line"></div><div class="line">vim themes/light/layout/_partial/article.ejs</div><div class="line">删除</div><div class="line"><span class="tag">&lt;<span class="name">%-</span></span><span class="ruby">partial(<span class="string">'post/share'</span>)</span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">替换为刚刚获取的分享代码</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"bdsharebuttonbox"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-weibo bds_tsina"</span> <span class="attr">data-cmd</span>=<span class="string">"tsina"</span> <span class="attr">title</span>=<span class="string">"分享到新浪微博"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-weixin bds_weixin"</span> <span class="attr">data-cmd</span>=<span class="string">"weixin"</span> <span class="attr">title</span>=<span class="string">"分享到微信"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-qq bds_sqq"</span> <span class="attr">data-cmd</span>=<span class="string">"sqq"</span> <span class="attr">title</span>=<span class="string">"分享到QQ好友"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-facebook-official bds_fbook"</span> <span class="attr">data-cmd</span>=<span class="string">"fbook"</span> <span class="attr">title</span>=<span class="string">"分享到Facebook"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-twitter bds_twi"</span> <span class="attr">data-cmd</span>=<span class="string">"twi"</span> <span class="attr">title</span>=<span class="string">"分享到Twitter"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-linkedin bds_linkedin"</span> <span class="attr">data-cmd</span>=<span class="string">"linkedin"</span> <span class="attr">title</span>=<span class="string">"分享到linkedin"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-files-o bds_copy"</span> <span class="attr">data-cmd</span>=<span class="string">"copy"</span> <span class="attr">title</span>=<span class="string">"分享到复制网址"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line"></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-plus-square bds_more"</span> <span class="attr">data-cmd</span>=<span class="string">"more"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-tencent-weibo bds_tqq"</span> <span class="attr">data-cmd</span>=<span class="string">"tqq"</span> <span class="attr">title</span>=<span class="string">"分享到腾讯微博"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-renren bds_renren"</span> <span class="attr">data-cmd</span>=<span class="string">"renren"</span> <span class="attr">title</span>=<span class="string">"分享到人人网"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-paw bds_tieba"</span> <span class="attr">data-cmd</span>=<span class="string">"tieba"</span> <span class="attr">title</span>=<span class="string">"分享到百度贴吧"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-envelope-o bds_mail"</span> <span class="attr">data-cmd</span>=<span class="string">"mail"</span> <span class="attr">title</span>=<span class="string">"分享到邮件分享"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-print bds_print"</span> <span class="attr">data-cmd</span>=<span class="string">"print"</span> <span class="attr">title</span>=<span class="string">"分享到打印"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa-share-alt bds_mshare"</span> <span class="attr">data-cmd</span>=<span class="string">"mshare"</span> <span class="attr">title</span>=<span class="string">"分享到一键分享"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx bds_douban"</span> <span class="attr">data-cmd</span>=<span class="string">"douban"</span> <span class="attr">title</span>=<span class="string">"分享到豆瓣网"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa- bds_qzone"</span> <span class="attr">data-cmd</span>=<span class="string">"qzone"</span> <span class="attr">title</span>=<span class="string">"分享到QQ空间"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"fx fa- bds_evernotecn"</span> <span class="attr">data-cmd</span>=<span class="string">"evernotecn"</span> <span class="attr">title</span>=<span class="string">"分享到印象笔记"</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"><span class="built_in">window</span>._bd_share_config=&#123;<span class="string">"common"</span>:&#123;<span class="string">"bdSnsKey"</span>:&#123;&#125;,<span class="string">"bdText"</span>:<span class="string">""</span>,<span class="string">"bdMini"</span>:<span class="string">"1"</span>,<span class="string">"bdMiniList"</span>:<span class="literal">false</span>,<span class="string">"bdPic"</span>:<span class="string">""</span>,<span class="string">"bdStyle"</span>:<span class="string">"2"</span>,<span class="string">"bdSize"</span>:<span class="string">"24"</span>&#125;,<span class="string">"share"</span>:&#123;&#125;&#125;;<span class="keyword">with</span>(<span class="built_in">document</span>)<span class="number">0</span>[(getElementsByTagName(<span class="string">'head'</span>)[<span class="number">0</span>]||body).appendChild(createElement(<span class="string">'script'</span>)).src=<span class="string">'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='</span>+~(-<span class="keyword">new</span> <span class="built_in">Date</span>()/<span class="number">36e5</span>)];</span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式</p>
</blockquote>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div></pre></td><td class="code"><pre><div class="line">\themes\spfk\source\css\_partial\<span class="selector-tag">article</span><span class="selector-class">.styl</span></div><div class="line"></div><div class="line"><span class="comment">/* bd share button box */</span></div><div class="line"><span class="selector-class">.bdshare-button-style2-24</span>&#123;</div><div class="line">  <span class="attribute">width</span>: <span class="number">330px</span>;</div><div class="line">  <span class="attribute">margin</span>: auto;</div><div class="line">  <span class="selector-class">.fx</span> &#123;</div><div class="line">      <span class="attribute">color</span>: <span class="number">#999</span>;</div><div class="line">      <span class="attribute">padding</span>: <span class="number">0</span>;</div><div class="line">      <span class="attribute">margin</span>: <span class="number">6px</span>;</div><div class="line">      <span class="attribute">height</span>: <span class="number">54px</span>;</div><div class="line">      <span class="attribute">display</span>: inline-block;</div><div class="line">      <span class="attribute">font</span>: normal normal normal <span class="number">36px</span>/<span class="number">1</span> FontAwesome;</div><div class="line">      <span class="attribute">background</span>: none;</div><div class="line">      <span class="attribute">text-rendering</span>: auto;</div><div class="line">      -webkit-<span class="attribute">font</span>-smoothing: antialiased;</div><div class="line">      -moz-osx-<span class="attribute">font</span>-smoothing: grayscale;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.fx</span>:hover&#123;</div><div class="line">    <span class="attribute">color</span>: <span class="number">#FFF</span>;</div><div class="line">    <span class="attribute">opacity</span>: <span class="number">1</span>;</div><div class="line">  &#125;</div><div class="line">&#125;</div><div class="line"></div><div class="line">themes\spfk\source\css\_partial\mobile<span class="selector-class">.styl</span></div><div class="line"><span class="comment">/* bd share button box */</span></div><div class="line"><span class="selector-class">.bdshare-button-style2-24</span>&#123;</div><div class="line">  <span class="attribute">width</span>: <span class="number">289px</span>;</div><div class="line">  <span class="selector-class">.fx</span> &#123;</div><div class="line">      <span class="attribute">font</span>: normal normal normal <span class="number">30px</span>/<span class="number">1</span> FontAwesome;</div><div class="line">  &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<h2 id="百度统计"><a href="#百度统计" class="headerlink" title="百度统计"></a>百度统计</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div></pre></td><td class="code"><pre><div class="line"><span class="xml">去百度统计获取统计代码</span></div><div class="line"></div><div class="line">vim themes/light/layout/_partial/baidu_analytics.ejs</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (theme.baidu_analytics)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line"><span class="keyword">var</span> _hmt = _hmt || [];</div><div class="line">(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</div><div class="line">  <span class="keyword">var</span> hm = <span class="built_in">document</span>.createElement(<span class="string">"script"</span>);</div><div class="line">  hm.src = <span class="string">"//hm.baidu.com/hm.js?819b1c6493df653afb8c784db6"</span>;</div><div class="line">  <span class="keyword">var</span> s = <span class="built_in">document</span>.getElementsByTagName(<span class="string">"script"</span>)[<span class="number">0</span>]; </div><div class="line">  s.parentNode.insertBefore(hm, s);</div><div class="line">&#125;)();</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"></div><div class="line">vim hexo/themes/light/_config.yml</div><div class="line"></div><div class="line">baidu_analytics: true</div><div class="line"></div><div class="line">vim hexo/themes/light/layout/_partial/head.ejs</div><div class="line">在/head前添加</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%-</span></span><span class="ruby"> partial(<span class="string">'baidu_analytics'</span>) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;/<span class="name">head</span>&gt;</span></div></pre></td></tr></table></figure>
<h2 id="不蒜子"><a href="#不蒜子" class="headerlink" title="不蒜子"></a>不蒜子</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div></pre></td><td class="code"><pre><div class="line"><span class="xml">themes/你的主题/layout/_partial/footer.ejs</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">footer</span> <span class="attr">id</span>=<span class="string">"footer"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"outer"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"footer-info"</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"footer-left"</span>&gt;</span></div><div class="line">                &amp;copy; <span class="tag">&lt;<span class="name">%=</span></span><span class="ruby"> date(new Date(), <span class="string">'YYYY'</span>) </span><span class="xml"><span class="tag">%&gt;</span> <span class="tag">&lt;<span class="name">%=</span></span></span><span class="ruby"> config.author <span class="params">||</span> config.title </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">            <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"footer-right"</span>&gt;</span></div><div class="line">                <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"http://hexo.io/"</span> <span class="attr">target</span>=<span class="string">"_blank"</span>&gt;</span>Hexo<span class="tag">&lt;/<span class="name">a</span>&gt;</span>  Theme <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"https://github.com/Jimmey-Jiang/hexo-theme-spfk"</span> <span class="attr">target</span>=<span class="string">"_blank"</span>&gt;</span>spfk<span class="tag">&lt;/<span class="name">a</span>&gt;</span> by Jimmey-Jiang</div><div class="line">            <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">        <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"visit"</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"busuanzi_container_site_pv"</span> <span class="attr">style</span>=<span class="string">'display:none'</span>&gt;</span></div><div class="line">                <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"site-visit"</span> &gt;</span>本站到访数: </div><div class="line">                    <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"busuanzi_value_site_uv"</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">                <span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">            <span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"busuanzi_container_page_pv"</span> <span class="attr">style</span>=<span class="string">'display:none'</span>&gt;</span></div><div class="line">                <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"page-visit"</span>&gt;</span>, 本页阅读量: </div><div class="line">                    <span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">"busuanzi_value_page_pv"</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">                <span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">            <span class="tag">&lt;/<span class="name">span</span>&gt;</span></div><div class="line">        <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">script</span> <span class="attr">async</span> <span class="attr">src</span>=<span class="string">"https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"</span>&gt;</span><span class="undefined"></span></div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">footer</span>&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式</p>
</blockquote>
<p>移动端出现上移themes\spfk\source\css_partial\mobile.styl<br><figure class="highlight stylus"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#footer</span> &#123;</div><div class="line">    <span class="attribute">bottom</span>: <span class="number">10px</span>;</div><div class="line">    .footer-<span class="attribute">left</span>&#123;</div><div class="line">        <span class="attribute">float</span>: initial;</div><div class="line">        <span class="attribute">margin-bottom</span>: <span class="number">10px</span>;</div><div class="line">    &#125;</div><div class="line">    .footer-<span class="attribute">right</span>&#123;</div><div class="line">        <span class="attribute">float</span>: initial;</div><div class="line">        <span class="attribute">margin-bottom</span>: <span class="number">10px</span>;</div><div class="line">    &#125;</div><div class="line">&#125;</div><div class="line"><span class="selector-id">#container</span> <span class="selector-class">.visit</span> &#123;</div><div class="line">    <span class="attribute">margin-top</span>: <span class="number">1em</span>;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<h2 id="版权声明"><a href="#版权声明" class="headerlink" title="版权声明"></a>版权声明</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div></pre></td><td class="code"><pre><div class="line"><span class="xml">\layout\_partial\post\nav.ejs</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (post.original != <span class="literal">false</span> &amp;&amp; !is_page())&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"copyright"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">p</span>&gt;</span><span class="tag">&lt;<span class="name">span</span>&gt;</span>本文标题:<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"&lt;%-</span></span><span class="ruby"> url_for(post.path) </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span>&gt;</span><span class="tag">&lt;<span class="name">%=</span></span></span><span class="ruby"> post.title </span><span class="xml"><span class="tag">%&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">p</span>&gt;</span><span class="tag">&lt;<span class="name">span</span>&gt;</span>文章作者:<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"/"</span> <span class="attr">title</span>=<span class="string">"请访问 &lt;%=</span></span><span class="ruby">theme.author</span><span class="xml"><span class="tag"><span class="string">%&gt; 博客"</span>&gt;</span><span class="tag">&lt;<span class="name">%=</span></span></span><span class="ruby">theme.author</span><span class="xml"><span class="tag">%&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></div><div class="line">        <span class="comment">&lt;!-- &lt;p&gt;&lt;span&gt;发布时间:&lt;/span&gt;&lt;%=</span><span class="ruby"> post.date.format(<span class="string">"YYYY年MM月DD日 - HH时mm分"</span>) </span><span class="xml"><span class="comment">%&gt;&lt;/p&gt; --&gt;</span></span></div><div class="line">        <span class="comment">&lt;!-- &lt;p&gt;&lt;span&gt;最后更新:&lt;/span&gt;&lt;%=</span><span class="ruby"> post.updated.format(<span class="string">"YYYY年MM月DD日 - HH时mm分"</span>) </span><span class="xml"><span class="comment">%&gt;&lt;/p&gt; --&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">p</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">span</span>&gt;</span>原始链接:<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">a</span> <span class="attr">class</span>=<span class="string">"post-url"</span> <span class="attr">href</span>=<span class="string">"&lt;%-</span></span><span class="ruby"> url_for(post.path) </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">title</span>=<span class="string">"&lt;%=</span></span></span><span class="ruby"> post.title </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span>&gt;</span><span class="tag">&lt;<span class="name">%=</span></span></span><span class="ruby"> post.permalink </span><span class="xml"><span class="tag">%&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">            <span class="tag">&lt;<span class="name">span</span> <span class="attr">class</span>=<span class="string">"copy-path"</span> <span class="attr">data-clipboard-text</span>=<span class="string">"原文: &lt;%=</span></span><span class="ruby"> post.permalink </span><span class="xml"><span class="tag"><span class="string">%&gt;　　作者: &lt;%=</span></span></span><span class="ruby">theme.author</span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">title</span>=<span class="string">"点击复制文章链接"</span>&gt;</span><span class="tag">&lt;<span class="name">i</span> <span class="attr">class</span>=<span class="string">"fa fa-clipboard"</span>&gt;</span><span class="tag">&lt;/<span class="name">i</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span></span></div><div class="line">            <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">"/js/clipboard.min.js"</span>&gt;</span><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="actionscript"> <span class="keyword">var</span> clipboard = <span class="keyword">new</span> Clipboard(<span class="string">'.copy-path'</span>); </span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line">        <span class="tag">&lt;/<span class="name">p</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">p</span>&gt;</span></div><div class="line">            <span class="tag">&lt;<span class="name">span</span>&gt;</span>许可协议:<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">i</span> <span class="attr">class</span>=<span class="string">"fa fa-creative-commons"</span>&gt;</span><span class="tag">&lt;/<span class="name">i</span>&gt;</span> <span class="tag">&lt;<span class="name">a</span> <span class="attr">rel</span>=<span class="string">"license"</span> <span class="attr">href</span>=<span class="string">"http://creativecommons.org/licenses/by-nc-sa/3.0/cn/"</span> <span class="attr">title</span>=<span class="string">"中国大陆 (CC BY-NC-SA 3.0 CN)"</span>&gt;</span>"署名-非商用-相同方式共享 3.0"<span class="tag">&lt;/<span class="name">a</span>&gt;</span> 转载请保留原文链接及作者。</div><div class="line">        <span class="tag">&lt;/<span class="name">p</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (post.prev <span class="params">||</span> post.<span class="keyword">next</span>)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;<span class="name">nav</span> <span class="attr">id</span>=<span class="string">"article-nav"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (post.prev)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"&lt;%-</span></span><span class="ruby"> url_for(post.prev.path) </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">id</span>=<span class="string">"article-nav-newer"</span> <span class="attr">class</span>=<span class="string">"article-nav-link-wrap"</span>&gt;</span></span></div><div class="line">      <span class="tag">&lt;<span class="name">strong</span> <span class="attr">class</span>=<span class="string">"article-nav-caption"</span>&gt;</span><span class="tag">&lt;&lt;/<span class="attr">strong</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"article-nav-title"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (post.prev.title)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">          <span class="tag">&lt;<span class="name">%=</span></span><span class="ruby"> post.prev.title </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; <span class="keyword">else</span> &#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">          (no title)</div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">      <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">  <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span> (post.<span class="keyword">next</span>)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"&lt;%-</span></span><span class="ruby"> url_for(post.<span class="keyword">next</span>.path) </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">id</span>=<span class="string">"article-nav-older"</span> <span class="attr">class</span>=<span class="string">"article-nav-link-wrap"</span>&gt;</span></span></div><div class="line">      <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"article-nav-title"</span>&gt;</span><span class="tag">&lt;<span class="name">%=</span></span><span class="ruby"> post.<span class="keyword">next</span>.title </span><span class="xml"><span class="tag">%&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span></div><div class="line">      <span class="tag">&lt;<span class="name">strong</span> <span class="attr">class</span>=<span class="string">"article-nav-caption"</span>&gt;</span>&gt;<span class="tag">&lt;/<span class="name">strong</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">a</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;/<span class="name">nav</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式<br><figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div></pre></td><td class="code"><pre><div class="line">\themes\spfk\source\css\_partial\<span class="selector-tag">article</span><span class="selector-class">.styl</span></div><div class="line"></div><div class="line"><span class="comment">/* copyright */</span></div><div class="line"><span class="selector-class">.copyright</span> &#123;</div><div class="line">    <span class="attribute">width</span>: <span class="number">85%</span>;</div><div class="line">    <span class="attribute">max-width</span>: <span class="number">45em</span>;</div><div class="line">    <span class="attribute">margin</span>: <span class="number">0</span> auto;</div><div class="line">    <span class="attribute">padding</span>: .<span class="number">5em</span> <span class="number">1.8em</span>;</div><div class="line">    <span class="attribute">border</span>: <span class="number">1px</span> solid lightgray;</div><div class="line">    <span class="attribute">font-size</span>: .<span class="number">93em</span>;</div><div class="line">    <span class="attribute">line-height</span>: <span class="number">1.6em</span>;</div><div class="line">    <span class="attribute">word-break</span>: break-word;</div><div class="line">    <span class="attribute">background</span>: rgba(<span class="number">255</span>, <span class="number">255</span>, <span class="number">255</span>, .<span class="number">4</span>);</div><div class="line">    <span class="selector-tag">span</span> &#123;</div><div class="line">        <span class="attribute">margin-right</span>: <span class="number">1em</span>;</div><div class="line">        <span class="attribute">color</span>: <span class="number">#B5B5B5</span>;</div><div class="line">        <span class="attribute">font-weight</span>: bold;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-tag">a</span> &#123;</div><div class="line">        <span class="attribute">color</span>: gray;</div><div class="line">        &amp;:hover &#123;</div><div class="line">            <span class="attribute">font-weight</span>: bold;</div><div class="line">            <span class="attribute">color</span>: <span class="number">#a3d2a3</span>;</div><div class="line">            <span class="attribute">text-decoration</span>: underline;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    &amp;:hover <span class="selector-tag">p</span> <span class="selector-class">.copy-path</span>::after &#123;</div><div class="line">        <span class="attribute">content</span>: <span class="string">"复制"</span>;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.post-url</span>:hover &#123;</div><div class="line">        <span class="attribute">font-weight</span>: normal;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.copy-path</span> &#123;</div><div class="line">        <span class="attribute">margin-left</span>: <span class="number">1em</span>;</div><div class="line">        &amp;:hover &#123;</div><div class="line">            <span class="attribute">color</span>: gray;</div><div class="line">            <span class="attribute">cursor</span>: pointer;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
</blockquote>
<h2 id="社交账号图标修改"><a href="#社交账号图标修改" class="headerlink" title="社交账号图标修改"></a>社交账号图标修改</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line"><span class="xml">\themes\spfk\layout\_partial\left-col.ejs</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">nav</span> <span class="attr">class</span>=<span class="string">"header-nav"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"social"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">for</span> (var i <span class="keyword">in</span> theme.subnav)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">            <span class="tag">&lt;<span class="name">a</span> <span class="attr">class</span>=<span class="string">"fl &lt;%=</span></span><span class="ruby"> i </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">target</span>=<span class="string">"_blank"</span> <span class="attr">href</span>=<span class="string">"&lt;%-</span></span></span><span class="ruby"> url_for(theme.subnav[i]) </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span> <span class="attr">title</span>=<span class="string">"&lt;%=</span></span></span><span class="ruby"> i </span><span class="xml"><span class="tag"><span class="string">%&gt;"</span>&gt;</span><span class="tag">&lt;<span class="name">%=</span></span></span><span class="ruby"> i </span><span class="xml"><span class="tag">%&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="ruby">&#125;</span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">nav</span>&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式</p>
</blockquote>
<h2 id="站内搜索框"><a href="#站内搜索框" class="headerlink" title="站内搜索框"></a>站内搜索框</h2><blockquote>
<p>添加代码<br>用ajax+json搜索</p>
</blockquote>
<p><a href="http://www.netcan666.com/2015/11/20/%E5%AE%8C%E7%BE%8E%E8%A7%A3%E5%86%B3Hexo%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2%E6%90%9C%E7%B4%A2%E9%97%AE%E9%A2%98/" target="_blank" rel="external">完美解决Hexo静态博客搜索问题</a></p>
<h2 id="站点Swiftype搜索框"><a href="#站点Swiftype搜索框" class="headerlink" title="站点Swiftype搜索框"></a>站点Swiftype搜索框</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div></pre></td><td class="code"><pre><div class="line">\themes\spfk\layout\_partial\left-col.ejs</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">form</span>&gt;</span>                </div><div class="line">    <span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">class</span>=<span class="string">"st-default-search-input search"</span> <span class="attr">id</span>=<span class="string">"search"</span> <span class="attr">placeholder</span>=<span class="string">" Search..."</span> <span class="attr">autocomplete</span>=<span class="string">"off"</span> <span class="attr">autocorrect</span>=<span class="string">"off"</span> <span class="attr">autocapitalize</span>=<span class="string">"off"</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">form</span>&gt;</span></div><div class="line"></div><div class="line"></div><div class="line">D:\Hexo\Hexo\themes\spfk\layout\_partial\after-footer.ejs</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span><span class="javascript"></span></div><div class="line">  <span class="built_in">window</span>.onload = <span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>&#123;</div><div class="line">    <span class="built_in">document</span>.getElementById(<span class="string">"search"</span>).onclick = <span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>&#123;</div><div class="line">        <span class="built_in">console</span>.log(<span class="string">"search"</span>)</div><div class="line">        search();</div><div class="line">    &#125;</div><div class="line">  &#125;</div><div class="line">  <span class="function"><span class="keyword">function</span> <span class="title">search</span>(<span class="params"></span>)</span>&#123;</div><div class="line">    (<span class="function"><span class="keyword">function</span>(<span class="params">w,d,t,u,n,s,e</span>)</span>&#123;w[<span class="string">'SwiftypeObject'</span>]=n;w[n]=w[n]||<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>&#123;</div><div class="line">    (w[n].q=w[n].q||[]).push(<span class="built_in">arguments</span>);&#125;;s=d.createElement(t);</div><div class="line">    e=d.getElementsByTagName(t)[<span class="number">0</span>];s.async=<span class="number">1</span>;s.src=u;e.parentNode.insertBefore(s,e);</div><div class="line">    &#125;)(<span class="built_in">window</span>,<span class="built_in">document</span>,<span class="string">'script'</span>,<span class="string">'//s.swiftypecdn.com/install/v2/st.js'</span>,<span class="string">'_st'</span>);</div><div class="line"></div><div class="line">    _st(<span class="string">'install'</span>,<span class="string">'A1Pz-LKMXbrzcFg2FWi6'</span>,<span class="string">'2.0.0'</span>);</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式<br><figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div></pre></td><td class="code"><pre><div class="line"><span class="selector-class">.search</span> &#123;</div><div class="line">    <span class="attribute">width</span>: <span class="number">68%</span>;</div><div class="line">    <span class="attribute">height</span>: <span class="number">18px</span>;</div><div class="line">    <span class="attribute">margin-top</span>: <span class="number">1px</span>;</div><div class="line">    <span class="attribute">padding</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">font-family</span>: inherit;</div><div class="line">    <span class="attribute">border</span>: <span class="number">2px</span> solid transparent;</div><div class="line">    <span class="attribute">border-bottom</span>: <span class="number">2px</span> solid lightgray;</div><div class="line">    <span class="attribute">border-radius</span>: <span class="number">2px</span>;</div><div class="line">    <span class="attribute">opacity</span>: .<span class="number">7</span>;</div><div class="line">    <span class="attribute">background</span>: none;</div><div class="line">    &amp;:hover &#123;</div><div class="line">        <span class="attribute">border</span>: <span class="number">0px</span> solid lightgray;</div><div class="line">        <span class="attribute">opacity</span>: <span class="number">1</span>;</div><div class="line">        <span class="attribute">box-shadow</span>: <span class="number">0</span> <span class="number">0</span> <span class="number">10px</span> rgba(<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0.3</span>);</div><div class="line">    &#125;;</div><div class="line">&#125;</div><div class="line"></div><div class="line"></div><div class="line"><span class="attribute">display</span>: inline-block;</div><div class="line">    <span class="attribute">width</span>: <span class="number">190px</span>;</div><div class="line">    <span class="attribute">height</span>: <span class="number">16px</span>;</div><div class="line">    <span class="attribute">padding</span>: <span class="number">7px</span> <span class="number">11px</span> <span class="number">7px</span> <span class="number">28px</span>;</div><div class="line">    <span class="attribute">border</span>: <span class="number">1px</span> solid <span class="number">#bbb</span>;</div><div class="line">    <span class="attribute">border</span>: <span class="number">1px</span> solid rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.25</span>);</div><div class="line">    <span class="attribute">font-weight</span>: <span class="number">400</span>;</div><div class="line">    <span class="attribute">color</span>: <span class="number">#444</span>;</div><div class="line">    <span class="attribute">font-size</span>: <span class="number">14px</span>;</div><div class="line">    <span class="attribute">line-height</span>: <span class="number">16px</span>;</div><div class="line">    <span class="attribute">box-sizing</span>: content-box;</div><div class="line">    <span class="attribute">background</span>: <span class="number">#fff</span> <span class="number">8px</span> <span class="number">8px</span> no-repeat url(%2BR8AAAACXB…Hx4Taq1nrnKaW8K6XUUsrHWuvNevdRRLzFGwzvDbXAB9cDAHvhedDruuxSAAAAAElFTkSuQmCC);</div><div class="line">    <span class="attribute">background-clip</span>: padding-box;</div><div class="line">    -webkit-<span class="attribute">border-radius</span>: <span class="number">5px</span>;</div><div class="line">    -moz-<span class="attribute">border-radius</span>: <span class="number">5px</span>;</div><div class="line">    -ms-<span class="attribute">border-radius</span>: <span class="number">5px</span>;</div><div class="line">    -o-<span class="attribute">border-radius</span>: <span class="number">5px</span>;</div><div class="line">    <span class="attribute">border-radius</span>: <span class="number">5px</span>;</div><div class="line">    -webkit-<span class="attribute">box-shadow</span>: none;</div><div class="line">    -moz-<span class="attribute">box-shadow</span>: none;</div><div class="line">    <span class="attribute">box-shadow</span>: none;</div><div class="line">    <span class="attribute">font-family</span>: <span class="string">"Helvetica Neue"</span>,Helvetica,Arial,<span class="string">"Lucida Grande"</span>,sans-serif;</div></pre></td></tr></table></figure></p>
</blockquote>
<h2 id="RSS不显示"><a href="#RSS不显示" class="headerlink" title="RSS不显示"></a>RSS不显示</h2><figure class="highlight crmsh"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line">    安装RSS插件</div><div class="line"></div><div class="line">$ npm install hexo-generator-feed --save</div><div class="line"></div><div class="line">    开启RSS功能</div><div class="line"></div><div class="line">    编辑hexo/themes_config.yml，添加如下代码：</div><div class="line"></div><div class="line">    rss: /atom.<span class="keyword">xml</span> <span class="title">#rss</span>地址  默认即可</div></pre></td></tr></table></figure>
<h2 id="sitemap网站地图"><a href="#sitemap网站地图" class="headerlink" title="sitemap网站地图"></a>sitemap网站地图</h2><figure class="highlight sql"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div></pre></td><td class="code"><pre><div class="line">1、安装插件：</div><div class="line"></div><div class="line">$ npm <span class="keyword">install</span> hexo-generator-sitemap <span class="comment">--save</span></div><div class="line">$ npm <span class="keyword">install</span> hexo-generator-baidu-sitemap <span class="comment">--save</span></div><div class="line"></div><div class="line"><span class="number">2</span>、在博客目录的hexo/_config.yml中添加如下代码：</div><div class="line"></div><div class="line"># 自动生成sitemap编辑</div><div class="line"></div><div class="line">sitemap:</div><div class="line"><span class="keyword">path</span>: sitemap.xml</div><div class="line">baidusitemap:</div><div class="line"><span class="keyword">path</span>: baidusitemap.xml</div><div class="line"></div><div class="line"><span class="number">3</span>、hexo编译的时候会自动在根目录生成站点地图</div><div class="line"></div><div class="line">    UUhike@UUhike-pc MINGW64 /d/Hexo/Hexo (<span class="keyword">master</span>)</div><div class="line">    $ npm <span class="keyword">install</span> hexo-generator-sitemap <span class="comment">--save</span></div><div class="line">    npm WARN <span class="keyword">install</span> Couldn<span class="string">'t install optional dependency: Unsupported</span></div><div class="line">    npm WARN install Couldn't <span class="keyword">install</span> optional dependency: Unsupported</div><div class="line">    hexo-site@<span class="number">0.0</span><span class="number">.0</span> D:\Hexo\Hexo</div><div class="line">    └── hexo-generator-sitemap@<span class="number">1.0</span><span class="number">.1</span></div><div class="line"></div><div class="line"></div><div class="line">    UUhike@UUhike-pc MINGW64 /d/Hexo/Hexo (<span class="keyword">master</span>)</div><div class="line">    $ npm <span class="keyword">install</span> hexo-generator-baidu-sitemap <span class="comment">--save</span></div><div class="line">    npm WARN <span class="keyword">install</span> Couldn<span class="string">'t install optional dependency: Unsupported</span></div><div class="line">    npm WARN install Couldn't <span class="keyword">install</span> optional dependency: Unsupported</div><div class="line">    hexo-site@<span class="number">0.0</span><span class="number">.0</span> D:\Hexo\Hexo</div><div class="line">    └── hexo-generator-baidu-sitemap@<span class="number">0.1</span><span class="number">.2</span></div><div class="line"></div><div class="line"></div><div class="line">    UUhike@UUhike-pc MINGW64 /d/Hexo/Hexo (<span class="keyword">master</span>)</div><div class="line">    $ hexo g</div><div class="line">    INFO  Files loaded <span class="keyword">in</span> <span class="number">2.42</span> s</div><div class="line">    INFO  <span class="keyword">Generated</span>: baidusitemap.xml</div><div class="line">    INFO  <span class="keyword">Generated</span>: sitemap.xml</div><div class="line">    INFO  <span class="number">2</span> files <span class="keyword">generated</span> <span class="keyword">in</span> <span class="number">477</span> ms</div></pre></td></tr></table></figure>
<h2 id="多说评论插件"><a href="#多说评论插件" class="headerlink" title="多说评论插件"></a>多说评论插件</h2><blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div></pre></td><td class="code"><pre><div class="line">    ├── spfk</div><div class="line">        ├── _config.yml #主题配置文件</div><div class="line">    #是否开启多说评论，填写你在多说申请的项目名称 duoshuo: duoshuo-key（http://duoshuo-key.duoshuo.com/）</div><div class="line">    #若使用disqus，请在博客config文件中填写disqus_shortname，并关闭多说评论</div><div class="line">    duoshuo: true</div><div class="line"></div><div class="line"></div><div class="line">复制到 themes\landscape\layout\_partial\article.ejs把</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span> <span class="attr">if</span> (!<span class="attr">index</span> &amp;&amp; <span class="attr">post.comments</span> &amp;&amp; <span class="attr">config.disqus_shortname</span>)&#123; %&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">section</span> <span class="attr">id</span>=<span class="string">"comments"</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"disqus_thread"</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">noscript</span>&gt;</span>Please enable JavaScript to view the <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"//disqus.com/?ref_noscript"</span>&gt;</span>comments powered by Disqus.<span class="tag">&lt;/<span class="name">a</span>&gt;</span><span class="tag">&lt;/<span class="name">noscript</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">section</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span> &#125; %&gt;</span></div><div class="line"></div><div class="line">改为</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span> <span class="attr">if</span> (!<span class="attr">index</span> &amp;&amp; <span class="attr">post.comments</span> &amp;&amp; <span class="attr">config.disqus_shortname</span>)&#123; %&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">section</span> <span class="attr">id</span>=<span class="string">"comments"</span>&gt;</span></div><div class="line"><span class="comment">&lt;!-- 多说评论框 start --&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"ds-thread"</span> <span class="attr">data-thread-key</span>=<span class="string">"&lt;%= post.layout %&gt;-&lt;%= post.slug %&gt;"</span> <span class="attr">data-title</span>=<span class="string">"&lt;%= post.title %&gt;"</span> <span class="attr">data-url</span>=<span class="string">"&lt;%= page.permalink %&gt;"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="comment">&lt;!-- 多说评论框 end --&gt;</span></div><div class="line"><span class="comment">&lt;!-- 多说公共JS代码 start (一个网页只需插入一次) --&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span><span class="javascript"></span></div><div class="line"><span class="keyword">var</span> duoshuoQuery = &#123;<span class="attr">short_name</span>:<span class="string">'&lt;%= config.disqus_shortname %&gt;'</span>&#125;;</div><div class="line">  (<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="keyword">var</span> ds = <span class="built_in">document</span>.createElement(<span class="string">'script'</span>);</div><div class="line">    ds.type = <span class="string">'text/javascript'</span>;ds.async = <span class="literal">true</span>;</div><div class="line">    ds.src = (<span class="built_in">document</span>.location.protocol == <span class="string">'https:'</span> ? <span class="string">'https:'</span> : <span class="string">'http:'</span>) + <span class="string">'//static.duoshuo.com/embed.js'</span>;</div><div class="line">    ds.charset = <span class="string">'UTF-8'</span>;</div><div class="line">    (<span class="built_in">document</span>.getElementsByTagName(<span class="string">'head'</span>)[<span class="number">0</span>] </div><div class="line">     || <span class="built_in">document</span>.getElementsByTagName(<span class="string">'body'</span>)[<span class="number">0</span>]).appendChild(ds);</div><div class="line">  &#125;)();</div><div class="line">  <span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"><span class="comment">&lt;!-- 多说公共JS代码 end --&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">section</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span> &#125; %&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式：<a href="http://www.vsay.cn/one-more-custom-css-lets-you-say-comments-city.html" target="_blank" rel="external">V说：</a><a href="http://www.shejidaren.com/use-css3-to-create-a-beautiful-comment-ui.html" target="_blank" rel="external">设计达人：</a><a href="http://www.shejidaren.com/examples/comment-ui/" target="_blank" rel="external">设计达人：</a></p>
<p>添加方法：<br>添加方法：打开「后台」 &gt; 「多说评论」 &gt; 「设置」 &gt; 「基本设置」 &gt; 然后把样式粘贴到「自定义CSS」文本框 &gt; 「保存」</p>
</blockquote>
<p>个性样式：</p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">ul</span><span class="selector-class">.ds-comments-tabs</span> <span class="selector-tag">li</span><span class="selector-class">.ds-tab</span> <span class="selector-tag">a</span><span class="selector-class">.ds-current</span>&#123;<span class="attribute">border</span>:<span class="number">0</span>;<span class="attribute">color</span>:<span class="number">#848568</span>;<span class="attribute">text-shadow</span>:none;<span class="attribute">background</span>:<span class="number">#dddfc2</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-highlight</span>&#123;<span class="attribute">font-family</span>:Arial,Helvetica,sans-serif;<span class="attribute">font-size</span>:<span class="number">14px</span>;<span class="attribute">font-weight</span>:<span class="number">700</span>;<span class="attribute">color</span>:<span class="number">#848568</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">ul</span><span class="selector-class">.ds-comments-tabs</span> <span class="selector-tag">li</span><span class="selector-class">.ds-tab</span> <span class="selector-tag">a</span><span class="selector-class">.ds-current</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">color</span>:<span class="number">#696a52</span>;<span class="attribute">background</span>:<span class="number">#d4d6ba</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">a</span><span class="selector-class">.ds-highlight</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">color</span>:<span class="number">#696a52</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-thread</span>&#123;<span class="attribute">padding-left</span>:<span class="number">30px</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-hot-posts</span>,<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">li</span><span class="selector-class">.ds-post</span>&#123;<span class="attribute">overflow</span>:visible&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-post-self</span>&#123;<span class="attribute">padding</span>:<span class="number">10px</span> <span class="number">0</span> <span class="number">10px</span> <span class="number">10px</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-post-self</span>,<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">li</span><span class="selector-class">.ds-post</span>&#123;<span class="attribute">border</span>:<span class="number">0</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span>,<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">ul</span><span class="selector-class">.ds-children</span> <span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">26px</span>;<span class="attribute">left</span>:-<span class="number">14px</span>;<span class="attribute">padding</span>:<span class="number">5px</span>;<span class="attribute">width</span>:<span class="number">36px</span>;<span class="attribute">height</span>:<span class="number">36px</span>;<span class="attribute">box-shadow</span>:-<span class="number">1px</span> <span class="number">0</span> <span class="number">1px</span> <span class="built_in">rgba</span>(0,0,0,.15) inset;<span class="attribute">border-radius</span>:<span class="number">46px</span>;<span class="attribute">background</span>:<span class="number">#E5E6D0</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">ul</span><span class="selector-class">.ds-children</span> <span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">left</span>:-<span class="number">23px</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">a</span>&#123;<span class="attribute">display</span>:inline-block;<span class="attribute">padding</span>:<span class="number">1px</span>;<span class="attribute">width</span>:<span class="number">32px</span>;<span class="attribute">height</span>:<span class="number">32px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#b9baa6</span>;<span class="attribute">border-radius</span>:<span class="number">50%</span>;<span class="attribute">background-color</span>:<span class="number">#fff</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">a</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">border-color</span>:<span class="number">#de5a4e</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-class">.ds-avatar</span>&gt;<span class="selector-tag">img</span>&#123;<span class="attribute">margin</span>:<span class="number">2px</span> <span class="number">0</span> <span class="number">0</span> <span class="number">2px</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-replybox</span>&#123;<span class="attribute">box-shadow</span>:none&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-replybox</span><span class="selector-class">.ds-inline-replybox</span> <span class="selector-tag">a</span><span class="selector-class">.ds-avatar</span>,<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-tag">ul</span><span class="selector-class">.ds-children</span> <span class="selector-class">.ds-replybox</span><span class="selector-class">.ds-inline-replybox</span> <span class="selector-tag">a</span><span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">left</span>:<span class="number">0</span>;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">width</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">background</span>:<span class="number">0</span> <span class="number">0</span>;<span class="attribute">box-shadow</span>:none&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-replybox</span><span class="selector-class">.ds-inline-replybox</span> <span class="selector-tag">a</span><span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>&#123;<span class="attribute">width</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">border-radius</span>:<span class="number">50%</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-replybox</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>,<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-replybox</span> <span class="selector-tag">a</span><span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">width</span>:<span class="number">50px</span><span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">50px</span><span class="meta">!important</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>&#123;<span class="attribute">width</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">32px</span><span class="meta">!important</span>;<span class="attribute">border-radius</span>:<span class="number">32px</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">3px</span> <span class="built_in">rgba</span>(0,0,0,.22);<span class="attribute">-webkit-transition</span>:.<span class="number">4s</span> all ease-in-out;<span class="attribute">-moz-transition</span>:.<span class="number">4s</span> all ease-in-out;<span class="attribute">-o-transition</span>:.<span class="number">4s</span> all ease-in-out;<span class="attribute">-ms-transition</span>:.<span class="number">4s</span> all ease-in-out;<span class="attribute">transition</span>:.<span class="number">4s</span> all ease-in-out&#125;<span class="selector-class">.ds-post-self</span><span class="selector-pseudo">:hover</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">rotate</span>(360deg);<span class="attribute">-moz-transform</span>:<span class="built_in">rotate</span>(360deg);<span class="attribute">-o-transform</span>:<span class="built_in">rotate</span>(360deg);<span class="attribute">-ms-transform</span>:<span class="built_in">rotate</span>(360deg);<span class="attribute">transform</span>:<span class="built_in">rotate</span>(360deg)&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-comment-body</span>&#123;<span class="attribute">background</span>:<span class="number">#F0F0E3</span>;<span class="attribute">padding</span>:<span class="number">15px</span> <span class="number">15px</span> <span class="number">12px</span> <span class="number">32px</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> <span class="built_in">rgba</span>(0,0,0,.15),<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="built_in">rgba</span>(255,255,255,.75) inset&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-comment-body</span> <span class="selector-tag">p</span>&#123;<span class="attribute">color</span>:<span class="number">#787968</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-comments</span> <span class="selector-tag">a</span><span class="selector-class">.ds-user-name</span>&#123;<span class="attribute">font-weight</span>:<span class="number">700</span>;<span class="attribute">color</span>:<span class="number">#696A52</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-comments</span> <span class="selector-tag">a</span><span class="selector-class">.ds-user-name</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">color</span>:<span class="number">#D32</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-hot-posts</span>&#123;<span class="attribute">border</span>:<span class="number">0</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-hot-posts</span> <span class="selector-class">.ds-gradient-bg</span>&#123;<span class="attribute">background</span>:<span class="number">0</span> <span class="number">0</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span>&#123;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-id">#ds-ctx-bubble</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">a</span>,<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">position</span>:static;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">border</span>:<span class="number">0</span>;<span class="attribute">background</span>:<span class="number">0</span> <span class="number">0</span>;<span class="attribute">box-shadow</span>:none&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-id">#ds-ctx-bubble</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">a</span>,<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>&#123;<span class="attribute">width</span>:<span class="number">45px</span><span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">45px</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-bubble</span> <span class="selector-class">.ds-user-name</span>&#123;<span class="attribute">padding-left</span>:<span class="number">13px</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-comment-body</span> <span class="selector-id">#ds-ctx</span>&#123;<span class="attribute">border-left</span>:<span class="number">1px</span> solid <span class="number">#b9baa6</span>;<span class="attribute">background-color</span>:<span class="number">#e8e8dc</span><span class="meta">!important</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span>&#123;<span class="attribute">margin-right</span>:-<span class="number">15px</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span>&#123;<span class="attribute">position</span>:relative;<span class="attribute">padding</span>:<span class="number">10px</span> <span class="number">30px</span> <span class="number">10px</span> <span class="number">10px</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span> <span class="selector-class">.ds-avatar</span>&#123;<span class="attribute">top</span>:<span class="number">6px</span>;<span class="attribute">left</span>:<span class="number">5px</span>;<span class="attribute">background</span>:<span class="number">0</span> <span class="number">0</span>;<span class="attribute">box-shadow</span>:none&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span> <span class="selector-class">.ds-ctx-body</span>&#123;<span class="attribute">margin-left</span>:<span class="number">46px</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span> <span class="selector-class">.ds-ctx-content</span>&#123;<span class="attribute">color</span>:<span class="number">#787968</span>&#125;<span class="selector-id">#ds-reset</span> <span class="selector-id">#ds-ctx</span> <span class="selector-class">.ds-ctx-entry</span> <span class="selector-class">.ds-ctx-head</span> <span class="selector-tag">a</span>&#123;<span class="attribute">color</span>:<span class="number">#696A52</span>;<span class="attribute">font-weight</span>:<span class="number">700</span>&#125;</div></pre></td></tr></table></figure>
<p>个性样式：</p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>,<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">-webkit-animation-fill-mode</span>:both;<span class="attribute">-moz-animation-fill-mode</span>:both;<span class="attribute">-ms-animation-fill-mode</span>:both;<span class="attribute">-o-animation-fill-mode</span>:both;<span class="attribute">animation-fill-mode</span>:both;<span class="attribute">-webkit-animation-duration</span>:<span class="number">0s</span>;<span class="attribute">-moz-animation-duration</span>:<span class="number">0s</span>;<span class="attribute">-ms-animation-duration</span>:<span class="number">0s</span>;<span class="attribute">-o-animation-duration</span>:<span class="number">0s</span>;<span class="attribute">animation-duration</span>:<span class="number">0s</span>;<span class="attribute">-webkit-animation-duration</span>:.<span class="number">7s</span>;<span class="attribute">-moz-animation-duration</span>:.<span class="number">7s</span>;<span class="attribute">-ms-animation-duration</span>:.<span class="number">7s</span>;<span class="attribute">-o-animation-duration</span>:.<span class="number">7s</span>;<span class="attribute">animation-duration</span>:.<span class="number">7s</span>&#125;@-<span class="keyword">webkit</span>-<span class="keyword">keyframes</span> wobble&#123;0%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(0)&#125;15%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(-25%) <span class="built_in">rotate</span>(-5deg)&#125;30%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(20%) <span class="built_in">rotate</span>(3deg)&#125;45%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(-15%) <span class="built_in">rotate</span>(-3deg)&#125;60%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(10%) <span class="built_in">rotate</span>(2deg)&#125;75%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(-5%) <span class="built_in">rotate</span>(-1deg)&#125;100%&#123;<span class="attribute">-webkit-transform</span>:<span class="built_in">translateX</span>(0)&#125;&#125;@-<span class="keyword">moz</span>-<span class="keyword">keyframes</span> wobble&#123;0%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(0)&#125;15%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(-25%) <span class="built_in">rotate</span>(-5deg)&#125;30%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(20%) <span class="built_in">rotate</span>(3deg)&#125;45%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(-15%) <span class="built_in">rotate</span>(-3deg)&#125;60%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(10%) <span class="built_in">rotate</span>(2deg)&#125;75%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(-5%) <span class="built_in">rotate</span>(-1deg)&#125;100%&#123;<span class="attribute">-moz-transform</span>:<span class="built_in">translateX</span>(0)&#125;&#125;@-<span class="keyword">o</span>-<span class="keyword">keyframes</span> wobble&#123;0%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(0)&#125;15%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(-25%) <span class="built_in">rotate</span>(-5deg)&#125;30%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(20%) <span class="built_in">rotate</span>(3deg)&#125;45%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(-15%) <span class="built_in">rotate</span>(-3deg)&#125;60%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(10%) <span class="built_in">rotate</span>(2deg)&#125;75%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(-5%) <span class="built_in">rotate</span>(-1deg)&#125;100%&#123;<span class="attribute">-o-transform</span>:<span class="built_in">translateX</span>(0)&#125;&#125;@<span class="keyword">keyframes</span> wobble&#123;0%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(0)&#125;15%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(-25%) <span class="built_in">rotate</span>(-5deg)&#125;30%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(20%) <span class="built_in">rotate</span>(3deg)&#125;45%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(-15%) <span class="built_in">rotate</span>(-3deg)&#125;60%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(10%) <span class="built_in">rotate</span>(2deg)&#125;75%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(-5%) <span class="built_in">rotate</span>(-1deg)&#125;100%&#123;<span class="attribute">transform</span>:<span class="built_in">translateX</span>(0)&#125;&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span><span class="selector-pseudo">:hover</span>&#123;<span class="attribute">-webkit-animation-name</span>:wobble;<span class="attribute">-moz-animation-name</span>:wobble;<span class="attribute">-o-animation-name</span>:wobble;<span class="attribute">animation-name</span>:wobble&#125;</div></pre></td></tr></table></figure>
<p>个性样式：</p>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#ds-ssr</span>&#123;<span class="attribute">display</span>:none <span class="meta">!important</span>&#125;<span class="number">#d</span>s-reset&#123;font-weight:normal;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">font-size-adjust</span>:none;<span class="attribute">color</span>:<span class="number">#333</span>;<span class="attribute">line-height</span>:<span class="number">1</span>;<span class="attribute">text-align</span>:left&#125;<span class="selector-id">#ds-reset</span> *&#123;-webkit-<span class="attribute">box-sizing</span>:content-box;-moz-<span class="attribute">box-sizing</span>:content-box;<span class="attribute">box-sizing</span>:content-box&#125;<span class="number">#d</span>s-reset input[type=button],<span class="number">#d</span>s-reset input[type=submit],<span class="number">#d</span>s-reset input[type=reset],<span class="number">#d</span>s-reset button&#123;-webkit-box-sizing:border-box;-moz-<span class="attribute">box-sizing</span>:border-box;<span class="attribute">box-sizing</span>:border-box&#125;<span class="number">#d</span>s-reset div,<span class="number">#d</span>s-reset ul,<span class="number">#d</span>s-reset ol,<span class="number">#d</span>s-reset li,<span class="number">#d</span>s-reset ul li,<span class="number">#d</span>s-reset ol li,<span class="number">#d</span>s-reset iframe,<span class="number">#d</span>s-reset h1,<span class="number">#d</span>s-reset h2,<span class="number">#d</span>s-reset h3,<span class="number">#d</span>s-reset h4,<span class="number">#d</span>s-reset h5,<span class="number">#d</span>s-reset h6,<span class="number">#d</span>s-reset p,<span class="number">#d</span>s-reset img,<span class="number">#d</span>s-reset blockquote,<span class="number">#d</span>s-reset a,<span class="number">#d</span>s-reset span,<span class="number">#d</span>s-reset pre,<span class="number">#d</span>s-reset code,<span class="number">#d</span>s-reset strong,<span class="number">#d</span>s-reset sub,<span class="number">#d</span>s-reset sup,<span class="number">#d</span>s-reset fieldset,<span class="number">#d</span>s-reset form,<span class="number">#d</span>s-reset label,<span class="number">#d</span>s-reset input,<span class="number">#d</span>s-reset textarea,<span class="number">#d</span>s-reset select&#123;border:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">vertical-align</span>:baseline;<span class="attribute">font</span>:inherit;<span class="attribute">line-height</span>:inherit;<span class="attribute">background</span>:none;<span class="attribute">width</span>:auto;<span class="attribute">float</span>:none;<span class="attribute">overflow</span>:visible;<span class="attribute">transition</span>:none&#125;<span class="number">#d</span>s-reset strong&#123;font-weight:bold&#125;<span class="number">#d</span>s-reset p&#123;text-indent:<span class="number">0</span>;<span class="attribute">clear</span>:none&#125;<span class="number">#d</span>s-reset span,<span class="number">#d</span>s-reset strong,<span class="number">#d</span>s-reset label,<span class="number">#d</span>s-reset input&#123;display:inline;<span class="attribute">margin</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-reset textarea:focus,<span class="number">#d</span>s-reset input:focus&#123;outline:none&#125;<span class="number">#d</span>s-reset ul,<span class="number">#d</span>s-reset ol,<span class="number">#d</span>s-reset ul li,<span class="number">#d</span>s-reset ol li&#123;list-style:none;<span class="attribute">display</span>:block&#125;<span class="number">#d</span>s-reset input,<span class="number">#d</span>s-reset button&#123;-webkit-border-radius:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-indicator&#123;display:none;<span class="attribute">position</span>:fixed;<span class="attribute">z-index</span>:<span class="number">99999</span>;<span class="attribute">top</span>:<span class="number">150px</span>;<span class="attribute">left</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">8px</span>;<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>;<span class="attribute">border-top-right-radius</span>:<span class="number">3px</span>;<span class="attribute">width</span>:<span class="number">16px</span>;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">background</span>:<span class="number">#666</span> url(<span class="string">""</span>) <span class="number">8px</span> <span class="number">8px</span> no-repeat;*<span class="attribute">background-image</span>:url(<span class="string">"//static.duoshuo.com/images/loading.gif"</span>);*<span class="attribute">position</span>:absolute;-webkit-<span class="attribute">box-sizing</span>:content-box;-moz-<span class="attribute">box-sizing</span>:content-box;<span class="attribute">box-sizing</span>:content-box&#125;<span class="number">#d</span>s-waiting&#123;cursor:wait;<span class="attribute">display</span>:block;<span class="attribute">width</span>:<span class="number">16px</span>;<span class="attribute">height</span>:<span class="number">11px</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">3px</span> <span class="number">5px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">background</span>:url(<span class="string">""</span>) <span class="number">0</span> <span class="number">0</span> no-repeat;*<span class="attribute">background-image</span>:url(<span class="string">"//static.duoshuo.com/images/waiting.gif"</span>)&#125;<span class="number">#d</span>s-reset .ds-highlight&#123;color:<span class="number">#d32</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-reset .ds-rounded&#123;-webkit-border-radius:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-reset .ds-rounded-top&#123;-webkit-border-top-right-radius:<span class="number">3px</span>;-webkit-<span class="attribute">border-top-left-radius</span>:<span class="number">3px</span>;<span class="attribute">border-top-right-radius</span>:<span class="number">3px</span>;<span class="attribute">border-top-left-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-reset .ds-rounded-bottom&#123;border-bottom-left-radius:<span class="number">3px</span>;<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>;-webkit-<span class="attribute">border-bottom-left-radius</span>:<span class="number">3px</span>;-webkit-<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-reset .ds-gradient-bg&#123;background:url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) <span class="number">0</span> -<span class="number">60px</span> repeat-x&#125;<span class="number">#d</span>s-reset .ds-avatar&#123;box-shadow:<span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.75</span>);<span class="attribute">position</span>:relative;-webkit-<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">background-color</span>:<span class="number">#fff</span>;<span class="attribute">float</span>:left&#125;<span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-avatar</span> <span class="selector-tag">img</span>&#123;<span class="attribute">display</span>:block;<span class="attribute">width</span>:<span class="number">50px</span>;<span class="attribute">height</span>:<span class="number">50px</span>;<span class="attribute">max-width</span>:none;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">3px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.22</span>);-webkit-<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-reset .ds-avatar .ds-service-icon&#123;display:block;<span class="attribute">position</span>:absolute;<span class="attribute">bottom</span>:-<span class="number">4px</span>;<span class="attribute">right</span>:-<span class="number">4px</span>&#125;<span class="number">#d</span>s-reset img.ds-smiley&#123;margin:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">display</span>:inline;<span class="attribute">border</span>:none&#125;<span class="number">#d</span>s-reset .ds-icon&#123;vertical-align:middle;<span class="attribute">display</span>:inline-block;<span class="attribute">overflow</span>:hidden;<span class="attribute">background</span>:transparent url(<span class="string">"//static.duoshuo.com/images/sprites.png"</span>) no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/sprites.gif"</span>)&#125;<span class="number">#d</span>s-reset a .ds-icon&#123;opacity:.<span class="number">6</span>;-webkit-<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear;<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear&#125;<span class="number">#d</span>s-reset a:hover .ds-icon&#123;opacity:<span class="number">1</span>&#125;<span class="number">#d</span>s-reset .ds-service-list a&#123;vertical-align:middle;<span class="attribute">padding-right</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-reset .ds-service-list li:hover a&#123;color:<span class="number">#333</span>&#125;<span class="number">#d</span>s-reset .ds-service-icon,<span class="number">#d</span>s-reset .ds-service-icon-grey&#123;width:<span class="number">16px</span> <span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">16px</span> <span class="meta">!important</span>;<span class="attribute">line-height</span>:<span class="number">100px</span>;<span class="attribute">display</span>:inline-block;<span class="attribute">background</span>:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.png?v=2"</span>) no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.gif?v=2"</span>);<span class="attribute">overflow</span>:hidden&#125;<span class="number">#d</span>s-reset .ds-service-icon-grey&#123;background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-grey.png"</span>);_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-grey.gif"</span>)&#125;<span class="number">#d</span>s-reset .ds-service-link&#123;height:<span class="number">16px</span> <span class="meta">!important</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">padding-left</span>:<span class="number">20px</span>;<span class="attribute">display</span>:block;<span class="attribute">background</span>:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.png?v=2"</span>) no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.gif?v=2"</span>);<span class="attribute">overflow</span>:hidden&#125;<span class="number">#d</span>s-reset .ds-weibo&#123;background-position:<span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-reset .ds-renren&#123;background-position:<span class="number">0</span> -<span class="number">32px</span>&#125;<span class="number">#d</span>s-reset .ds-qqt&#123;background-position:<span class="number">0</span> -<span class="number">64px</span>&#125;<span class="number">#d</span>s-reset .ds-kaixin&#123;background-position:<span class="number">0</span> -<span class="number">80px</span>&#125;<span class="number">#d</span>s-reset .ds-douban&#123;background-position:<span class="number">0</span> -<span class="number">96px</span>&#125;<span class="number">#d</span>s-reset .ds-qzone&#123;background-position:<span class="number">0</span> -<span class="number">128px</span>&#125;<span class="number">#d</span>s-reset .ds-duoshuo&#123;background-position:<span class="number">0</span> -<span class="number">144px</span>&#125;<span class="number">#d</span>s-reset .ds-qq&#123;background-position:<span class="number">0</span> -<span class="number">192px</span>&#125;<span class="number">#d</span>s-reset .ds-baidu&#123;background-position:<span class="number">0</span> -<span class="number">208px</span>&#125;<span class="number">#d</span>s-reset .ds-google&#123;background-position:<span class="number">0</span> -<span class="number">240px</span>&#125;<span class="number">#d</span>s-reset .ds-weixin&#123;background-position:<span class="number">0</span> -<span class="number">272px</span>&#125;<span class="number">#d</span>s-reset .ds-wechat&#123;background-position:<span class="number">0</span> -<span class="number">272px</span>&#125;.ds-icons-<span class="number">32</span> a&#123;display:block;<span class="attribute">cursor</span>:pointer;<span class="attribute">width</span>:<span class="number">32px</span> <span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">32px</span> <span class="meta">!important</span>;<span class="attribute">background</span>:url(<span class="string">"//static.duoshuo.com/images/icons_large.png"</span>) no-repeat <span class="meta">!important</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">text-indent</span>:-<span class="number">9999px</span>&#125;.ds-icons-<span class="number">32</span> a.ds-weibo&#123;background-position:-<span class="number">37px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-qzone&#123;background-position:<span class="number">0</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-qqt&#123;background-position:-<span class="number">74px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-renren&#123;background-position:-<span class="number">148px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-kaixin&#123;background-position:-<span class="number">111px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-weixin&#123;background-position:-<span class="number">224px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-wechat&#123;background-position:-<span class="number">224px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-qq&#123;background-position:-<span class="number">488px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-douban&#123;background-position:-<span class="number">186px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;.ds-icons-<span class="number">32</span> a.ds-baidu&#123;background-position:-<span class="number">262px</span> <span class="number">0</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx&#123;padding:<span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">max-width</span>:<span class="number">640px</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry&#123;padding:<span class="number">6px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">border-bottom</span>:<span class="number">1px</span> solid <span class="number">#e6e6e6</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-head a&#123;color:<span class="number">#e77064</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-head a:hover&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-avatar&#123;margin:<span class="number">0</span>;<span class="attribute">width</span>:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-avatar img&#123;width:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">box-shadow</span>:none&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-body&#123;margin-left:<span class="number">38px</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-head&#123;position:relative;_zoom:<span class="number">1</span>;<span class="attribute">line-height</span>:<span class="number">1em</span>;<span class="attribute">padding</span>:<span class="number">1px</span> <span class="number">0</span> <span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">0</span> .<span class="number">25em</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-nth&#123;color:<span class="number">#999</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">2px</span>;<span class="attribute">right</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-time&#123;font-size:<span class="number">12px</span>;*<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">margin-left</span>:<span class="number">8px</span>;<span class="attribute">color</span>:<span class="number">#999</span>;_zoom:<span class="number">1</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-ctx-content&#123;position:relative;_zoom:<span class="number">1</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">line-height</span>:<span class="number">1.5em</span>&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-ctx-entry:hover .ds-comment-actions&#123;display:block&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-comment-actions&#123;bottom:<span class="number">0</span>;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">line-height</span>:<span class="number">18px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">display</span>:none;*<span class="attribute">display</span>:block&#125;<span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx .ds-comment-actions a&#123;margin:<span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">6px</span>&#125;<span class="number">#d</span>s-reset.ds-touch <span class="number">#d</span>s-ctx .ds-ctx-entry .ds-comment-actions&#123;display:block&#125;<span class="number">#d</span>s-reset .ds-comment-body <span class="number">#d</span>s-ctx&#123;border-left:<span class="number">3px</span> solid <span class="number">#ccc</span>;<span class="attribute">background-color</span>:rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.03</span>)&#125;<span class="number">#d</span>s-reset.ds-no-opacity .ds-comment-body <span class="number">#d</span>s-ctx&#123;background:<span class="number">#f8f8f8</span>&#125;<span class="number">#d</span>s-reset .ds-dialog-body <span class="number">#d</span>s-ctx .ds-ctx-entry:hover .ds-comment-actions&#123;display:none&#125;<span class="number">#d</span>s-thread&#123;clear:both;<span class="attribute">position</span>:relative;<span class="attribute">overflow</span>:visible;_zoom:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a&#123;cursor:pointer;<span class="attribute">text-decoration</span>:none;<span class="attribute">color</span>:<span class="number">#777</span>;<span class="attribute">background-color</span>:transparent;-webkit-<span class="attribute">transition</span>:color .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:color .<span class="number">15s</span> linear;<span class="attribute">transition</span>:color .<span class="number">15s</span> linear&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a:hover&#123;color:<span class="number">#333</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul li&#123;background:none;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-arrow&#123;position:absolute;<span class="attribute">width</span>:<span class="number">0</span>;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">font-size</span>:<span class="number">0</span> <span class="meta">!important</span>;<span class="attribute">line-height</span>:<span class="number">0</span> <span class="meta">!important</span>;_border-<span class="attribute">right</span>-<span class="attribute">color</span>:<span class="number">#ffc0cb</span> <span class="meta">!important</span>;_border-<span class="attribute">left</span>-<span class="attribute">color</span>:<span class="number">#ffc0cb</span> <span class="meta">!important</span>;_filter:chroma(color=<span class="number">#ffc0cb</span>) <span class="meta">!important</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-arrow-down&#123;border-left:<span class="number">5px</span> solid transparent;<span class="attribute">border-right</span>:<span class="number">5px</span> solid transparent;<span class="attribute">border-top</span>:<span class="number">5px</span> solid <span class="number">#fff</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset button&#123;cursor:pointer;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">border-radius</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-meta&#123;position:relative;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">line-height</span>:<span class="number">24px</span>;<span class="attribute">border-bottom</span>:<span class="number">1px</span> solid rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.13</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-like-tooltip&#123;position:absolute;<span class="attribute">z-index</span>:<span class="number">9999</span>;<span class="attribute">background-color</span>:<span class="number">#fcfcfc</span>;<span class="attribute">background-repeat</span>:repeat-x;<span class="attribute">background-image</span>:-khtml-gradient(linear, left top, left bottom, from(<span class="number">#fcfcfc</span>), to(<span class="number">#f9f9f9</span>));<span class="attribute">background</span>:-moz-linear-gradient(top, <span class="number">#fcfcfc</span> <span class="number">0</span>, <span class="number">#f9f9f9</span> <span class="number">100%</span>);<span class="attribute">background</span>:-webkit-gradient(linear, left top, left bottom, color-stop(<span class="number">0</span>, <span class="number">#fcfcfc</span>), color-stop(<span class="number">100%</span>, <span class="number">#f9f9f9</span>));<span class="attribute">background</span>:-webkit-linear-gradient(top, <span class="number">#fcfcfc</span> <span class="number">0</span>, <span class="number">#f9f9f9</span> <span class="number">100%</span>);<span class="attribute">background</span>:-ms-linear-gradient(top, <span class="number">#fcfcfc</span> <span class="number">0</span>, <span class="number">#f9f9f9</span> <span class="number">100%</span>);<span class="attribute">background</span>:linear-gradient(top, <span class="number">#fcfcfc</span> <span class="number">0</span>, <span class="number">#f9f9f9</span> <span class="number">100%</span>);<span class="attribute">filter</span>:progid:DXImageTransform.Microsoft.gradient(startColorstr=<span class="string">'#fcfcfc'</span>,endColorstr=<span class="string">'#f9f9f9'</span>,GradientType=<span class="number">0</span>);<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.2</span>);<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">14px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-like-tooltip ul&#123;width:<span class="number">84px</span>;<span class="attribute">float</span>:left&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-like-tooltip</span> <span class="selector-tag">li</span>&#123;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">6px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-like-tooltip p&#123;clear:both;<span class="attribute">margin</span>:<span class="number">6px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-like-tooltip .ds-like-tooltip-footer&#123;text-align:right&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-like-thread-button&#123;color:<span class="number">#555</span>;<span class="attribute">padding</span>:<span class="number">4px</span> <span class="number">8px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">border-bottom-color</span>:<span class="number">#aaa</span>;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">0</span> <span class="number">1px</span> <span class="number">#fff</span>;<span class="attribute">margin-right</span>:<span class="number">15px</span>;<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;<span class="attribute">background-color</span>:<span class="number">#e0e0e0</span>;<span class="attribute">background-repeat</span>:no-repeat;<span class="attribute">background-image</span>:-webkit-gradient(linear, <span class="number">0</span> <span class="number">0</span>, <span class="number">0</span> <span class="number">100%</span>, from(<span class="number">#fff</span>), color-stop(<span class="number">25%</span>, <span class="number">#fff</span>), to(<span class="number">#e0e0e0</span>));<span class="attribute">background-image</span>:-webkit-linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e0e0e0</span>);<span class="attribute">background-image</span>:-moz-linear-gradient(top, <span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e0e0e0</span>);<span class="attribute">background-image</span>:-ms-linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e0e0e0</span>);<span class="attribute">background-image</span>:linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e0e0e0</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-like-thread-button .ds-icon-heart&#123;position:relative;<span class="attribute">top</span>:-<span class="number">2px</span>;<span class="attribute">opacity</span>:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-like-thread-button span&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-thread-cancel-like&#123;display:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-thread-liked&#123;background:<span class="number">#e9e9e9</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-thread-liked:hover .ds-thread-cancel-like&#123;display:inline&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-thread-liked:hover .ds-thread-like-text&#123;display:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-hot-posts&#123;border:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">margin</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;_height:<span class="number">100%</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-header&#123;font-weight:bold;<span class="attribute">font-size</span>:<span class="number">14px</span>;<span class="attribute">color</span>:<span class="number">#555</span>;<span class="attribute">line-height</span>:<span class="number">30px</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">12px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-toolbar&#123;position:relative;<span class="attribute">z-index</span>:<span class="number">5</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">clear</span>:both&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-toolbar:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-visitor&#123;float:right;<span class="attribute">line-height</span>:<span class="number">1.5em</span>;<span class="attribute">margin-right</span>:<span class="number">6px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control&#123;float:right;<span class="attribute">position</span>:relative;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">cursor</span>:pointer;<span class="attribute">text-align</span>:right;<span class="attribute">line-height</span>:<span class="number">18px</span>;<span class="attribute">padding-bottom</span>:<span class="number">3px</span>;<span class="attribute">width</span>:<span class="number">75px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control span&#123;display:block;<span class="attribute">float</span>:left;<span class="attribute">color</span>:<span class="number">#999</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control ul&#123;display:none;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">19px</span>;<span class="attribute">left</span>:<span class="number">0</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">background</span>:<span class="number">#f8f8f8</span>;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> <span class="number">#fff</span>,<span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.3</span>);<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">text-align</span>:center&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control ul li a&#123;border-top:<span class="number">1px</span> solid <span class="number">#fff</span>;<span class="attribute">border-bottom</span>:<span class="number">1px</span> solid <span class="number">#ddd</span>;<span class="attribute">display</span>:block;<span class="attribute">padding</span>:<span class="number">3px</span> <span class="number">10px</span>;<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control ul li a:hover&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control.ds-active span&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-account-control.ds-active ul&#123;display:block&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-alert&#123;margin:.<span class="number">5em</span> <span class="number">0</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#fbeed5</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">padding</span>:<span class="number">6px</span> <span class="number">6px</span>;<span class="attribute">color</span>:<span class="number">#c09853</span>;<span class="attribute">background-color</span>:<span class="number">#fcf8e3</span>;<span class="attribute">line-height</span>:<span class="number">1.5em</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons&#123;width:<span class="number">100%</span>;<span class="attribute">position</span>:relative;<span class="attribute">padding</span>:<span class="number">10px</span> <span class="number">0</span> <span class="number">6px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons p&#123;float:left;<span class="attribute">line-height</span>:<span class="number">24px</span>;<span class="attribute">margin</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons .ds-service-list li&#123;float:left;<span class="attribute">height</span>:<span class="number">16px</span>;<span class="attribute">width</span>:<span class="number">54px</span>;<span class="attribute">padding</span>:<span class="number">4px</span> <span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">6px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons .ds-more-services&#123;color:<span class="number">#d32</span> <span class="meta">!important</span>;<span class="attribute">line-height</span>:<span class="number">16px</span>;<span class="attribute">display</span>:block&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons .ds-more-services:hover&#123;color:<span class="number">#e77064</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons .ds-additional-services&#123;display:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons .ds-social-links&#123;float:left;<span class="attribute">width</span>:<span class="number">306px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-login-buttons:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-unread-comments-count&#123;display:none;<span class="attribute">background-color</span>:<span class="number">#d32</span>;<span class="attribute">color</span>:<span class="number">#fff</span> <span class="meta">!important</span>;<span class="attribute">margin-right</span>:<span class="number">6px</span>;<span class="attribute">padding</span>:<span class="number">1px</span> <span class="number">5px</span>;<span class="attribute">font-weight</span>:bold;-webkit-<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.4</span>),<span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.3</span>);<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.3</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-unread-comments-count:hover&#123;background:<span class="number">#f00</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-replybox&#123;width:auto;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">z-index</span>:<span class="number">3</span>;<span class="attribute">margin</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">60px</span>;<span class="attribute">position</span>:relative;_zoom:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-replybox:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-replybox .ds-avatar&#123;position:absolute;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">left</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-replybox .ds-avatar img&#123;width:<span class="number">50px</span>;<span class="attribute">height</span>:<span class="number">50px</span>;<span class="attribute">visibility</span>:visible;<span class="attribute">margin</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-inline-replybox&#123;margin:<span class="number">8px</span> <span class="number">0</span> <span class="number">2px</span> <span class="number">0</span>;<span class="attribute">padding-left</span>:<span class="number">38px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-inline-replybox .ds-avatar img&#123;width:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.22</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper&#123;position:relative;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">border-bottom</span>:none;<span class="attribute">padding-right</span>:<span class="number">20px</span>;<span class="attribute">background</span>:<span class="number">#fff</span> url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) <span class="number">0</span> -<span class="number">90px</span> repeat-x;<span class="attribute">overflow</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper textarea&#123;box-shadow:none;-webkit-appearance:none;<span class="attribute">overflow</span>:auto;<span class="attribute">padding</span>:<span class="number">10px</span>;<span class="attribute">height</span>:<span class="number">54px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">resize</span>:none;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">width</span>:<span class="number">100%</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper textarea:focus&#123;color:<span class="number">#333</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper .ds-hidden-text&#123;word-wrap:break-word;<span class="attribute">visibility</span>:hidden;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">left</span>:<span class="number">10px</span>;<span class="attribute">right</span>:<span class="number">10px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper textarea,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-textarea-wrapper .ds-hidden-text&#123;display:block;<span class="attribute">font-family</span>:<span class="string">"Helvetica Neue"</span>,Helvetica,Arial,sans-serif;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">line-height</span>:<span class="number">20px</span>;<span class="attribute">border</span>:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-toolbar&#123;position:relative;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> rgba(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.6</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-toolbar span,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-toolbar input,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-toolbar label,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-toolbar a&#123;vertical-align:middle;<span class="attribute">width</span>:auto&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-options&#123;position:relative;<span class="attribute">margin-right</span>:<span class="number">100px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">border-right</span>:none;<span class="attribute">border-bottom-color</span>:<span class="number">#aaa</span>;<span class="attribute">border-bottom-left-radius</span>:<span class="number">3px</span>;-webkit-<span class="attribute">border-bottom-left-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-toolbar-buttons&#123;position:absolute;<span class="attribute">top</span>:<span class="number">5px</span>;<span class="attribute">left</span>:<span class="number">6px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-toolbar-button&#123;display:block;<span class="attribute">width</span>:<span class="number">19px</span> <span class="meta">!important</span>;<span class="attribute">height</span>:<span class="number">19px</span>;<span class="attribute">float</span>:left;<span class="attribute">margin-right</span>:<span class="number">4px</span>;<span class="attribute">background</span>:transparent url(<span class="string">"//static.duoshuo.com/images/sprites.png"</span>) no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/sprites.gif"</span>);<span class="attribute">vertical-align</span>:middle;<span class="attribute">opacity</span>:.<span class="number">6</span>;-webkit-<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear;<span class="attribute">transition</span>:opacity .<span class="number">15s</span> linear&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-toolbar-button:hover&#123;opacity:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-add-image&#123;background-position:<span class="number">0</span> -<span class="number">48px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-add-image:hover&#123;background-position:<span class="number">0</span> -<span class="number">66px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-add-emote&#123;background-position:<span class="number">0</span> -<span class="number">12px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-add-emote:hover&#123;background-position:<span class="number">0</span> -<span class="number">30px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sync&#123;font-size:<span class="number">12px</span>;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">line-height</span>:<span class="number">30px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">right</span>:<span class="number">5px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sync label&#123;color:<span class="number">#777</span>;<span class="attribute">cursor</span>:pointer;-webkit-<span class="attribute">transition</span>:color .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:color .<span class="number">15s</span> linear;<span class="attribute">transition</span>:color .<span class="number">15s</span> linear&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sync label:hover&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sync a.ds-service-icon,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sync a.ds-service-icon-grey&#123;margin:<span class="number">7px</span> <span class="number">2px</span> <span class="number">7px</span> <span class="number">3px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-button&#123;font-family:<span class="string">"Helvetica Neue"</span>,Helvetica,Arial,sans-serif;<span class="attribute">position</span>:absolute;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">height</span>:<span class="number">32px</span>;<span class="attribute">width</span>:<span class="number">100px</span>;<span class="attribute">text-align</span>:center;<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;<span class="attribute">color</span>:<span class="number">#555</span>;<span class="attribute">font-size</span>:<span class="number">14px</span>;<span class="attribute">font-weight</span>:bold;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">border-bottom-color</span>:<span class="number">#aaa</span>;<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>;-webkit-<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>;<span class="attribute">background-color</span>:<span class="number">#e6e6e6</span>;<span class="attribute">background-repeat</span>:no-repeat;<span class="attribute">background-image</span>:-webkit-gradient(linear, <span class="number">0</span> <span class="number">0</span>, <span class="number">0</span> <span class="number">100%</span>, from(<span class="number">#fcfcfc</span>), color-stop(<span class="number">25%</span>, <span class="number">#fcfcfc</span>), to(<span class="number">#e6e6e6</span>));<span class="attribute">background-image</span>:-webkit-linear-gradient(<span class="number">#fcfcfc</span>, <span class="number">#fcfcfc</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:-moz-linear-gradient(top, <span class="number">#fcfcfc</span>, <span class="number">#fcfcfc</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:-ms-linear-gradient(<span class="number">#fcfcfc</span>, <span class="number">#fcfcfc</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:linear-gradient(<span class="number">#fcfcfc</span>, <span class="number">#fcfcfc</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);-webkit-<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">0</span> <span class="number">1px</span> <span class="number">#fff</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-button:hover&#123;background-position:<span class="number">0</span> -<span class="number">15px</span>;<span class="attribute">color</span>:<span class="number">#333</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-button:active&#123;-webkit-box-shadow:inset <span class="number">0</span> <span class="number">2px</span> <span class="number">4px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.15</span>),<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.05</span>);<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">2px</span> <span class="number">4px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.15</span>),<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.05</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comments-info&#123;width:<span class="number">100%</span>;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">margin-top</span>:<span class="number">10px</span>;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">line-height</span>:<span class="number">25px</span>;<span class="attribute">position</span>:relative&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sort&#123;position:absolute;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">top</span>:<span class="number">8px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sort a&#123;color:<span class="number">#999</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">4px</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">2px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sort a:hover&#123;color:<span class="number">#333</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sort a.ds-current,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-sort a:active&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-comments-tabs .ds-highlight&#123;margin:<span class="number">0</span> <span class="number">2px</span> <span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-comments-tabs .ds-service-icon&#123;vertical-align:middle;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">2px</span> <span class="number">1px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-tab&#123;display:inline;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">5px</span> <span class="number">0</span> <span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-tab a&#123;text-shadow:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;<span class="attribute">padding</span>:<span class="number">3px</span> <span class="number">5px</span>;<span class="attribute">display</span>:inline;-webkit-<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-tab a.ds-current&#123;border:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">background-color</span>:rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.04</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-tab a:hover&#123;background-color:rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.04</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comments&#123;width:<span class="number">100%</span>;<span class="attribute">border-bottom</span>:<span class="number">1px</span> solid rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.13</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comments:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-post&#123;width:<span class="number">100%</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">clear</span>:both;<span class="attribute">border-top</span>:<span class="number">1px</span> solid rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.13</span>);<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">list-style</span>:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset li.ds-post-placeholder&#123;text-align:center;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">padding</span>:<span class="number">1em</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-self&#123;position:relative;<span class="attribute">padding</span>:<span class="number">10px</span>;<span class="attribute">border-top</span>:<span class="number">1px</span> solid rgba(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.7</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-self:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-self:hover .ds-post-delete,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-self:hover .ds-post-report&#123;display:inline-block&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-touch .ds-post-self .ds-post-delete,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-touch .ds-post-self .ds-post-report&#123;display:inline-block&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body&#123;padding-left:<span class="number">60px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body p&#123;font-size:<span class="number">13px</span>;<span class="attribute">line-height</span>:<span class="number">1.5em</span>;<span class="attribute">margin</span>:.<span class="number">5em</span> <span class="number">0</span>;<span class="attribute">word-wrap</span>:break-word&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body img&#123;max-width:<span class="number">100%</span>;<span class="attribute">vertical-align</span>:text-bottom;<span class="attribute">box-shadow</span>:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body embed&#123;max-width:<span class="number">100%</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body code&#123;display:block;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">font-family</span>:Monaco,Menlo,Consolas,<span class="string">"Courier New"</span>,monospace;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">12px</span>;<span class="attribute">background-color</span>:<span class="number">#f0f0f0</span>;<span class="attribute">margin</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ddd</span>;<span class="attribute">color</span>:<span class="number">#666</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body a&#123;color:<span class="number">#777</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-body a:hover&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-comment-context&#123;position:relative;<span class="attribute">margin</span>:.<span class="number">5em</span> <span class="number">0</span>;<span class="attribute">color</span>:<span class="number">#e77064</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset a.ds-comment-context:hover&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble&#123;position:absolute;<span class="attribute">background-color</span>:<span class="number">#fff</span>;-webkit-<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">padding</span>:<span class="number">10px</span>;<span class="attribute">color</span>:<span class="number">#333</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.2</span>);<span class="attribute">z-index</span>:<span class="number">9999</span>;<span class="attribute">font-size</span>:<span class="number">13px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble a&#123;color:<span class="number">#e77064</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble a:hover&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble p&#123;line-height:<span class="number">18px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble .ds-arrow-border&#123;border-top-color:<span class="number">#aaa</span>;<span class="attribute">bottom</span>:-<span class="number">6px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-bubble .ds-arrow&#123;left:<span class="number">32px</span>;<span class="attribute">bottom</span>:-<span class="number">5px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx-bubble&#123;width:<span class="number">300px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-ctx-bubble .ds-bubble-footer&#123;padding:<span class="number">6px</span> <span class="number">0</span> <span class="number">0</span> <span class="number">0</span>;<span class="attribute">line-height</span>:<span class="number">18px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card&#123;width:<span class="number">276px</span>;<span class="attribute">min-height</span>:<span class="number">50px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-avatar&#123;margin-right:<span class="number">10px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-avatar img&#123;width:<span class="number">50px</span>;<span class="attribute">height</span>:<span class="number">50px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-user-name&#123;vertical-align:top;<span class="attribute">display</span>:inline-block;<span class="attribute">max-width</span>:<span class="number">8em</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">white-space</span>:nowrap;<span class="attribute">text-overflow</span>:ellipsis;<span class="attribute">font-size</span>:<span class="number">14px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-user-card-meta&#123;margin:<span class="number">14px</span> <span class="number">0</span> <span class="number">0</span> <span class="number">62px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-user-description&#123;border-top:<span class="number">1px</span> dotted <span class="number">#ddd</span>;<span class="attribute">margin-top</span>:.<span class="number">5em</span>;<span class="attribute">color</span>:<span class="number">#aaa</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset <span class="number">#d</span>s-user-card .ds-service-icon&#123;margin-right:<span class="number">3px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-header&#123;padding-top:<span class="number">1px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-footer&#123;line-height:<span class="number">1.5em</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-footer a&#123;margin:<span class="number">0</span> <span class="number">6px</span> <span class="number">0</span> <span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">6px</span> <span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-actions a&#123;font-size:<span class="number">12px</span>;<span class="attribute">color</span>:<span class="number">#999</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-comment-actions a .ds-icon&#123;position:relative;<span class="attribute">top</span>:-<span class="number">1px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-user-name&#123;color:<span class="number">#777</span>;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">margin-right</span>:<span class="number">8px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-liked .ds-icon-like&#123;background-position:<span class="number">0</span> -<span class="number">130px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-liked a.ds-post-likes&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-reply-active&#123;display:block&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-reply-active .ds-post-reply&#123;color:<span class="number">#333</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-reply-active .ds-post-reply .ds-icon&#123;opacity:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-delete,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-post-report&#123;display:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-heart&#123;width:<span class="number">14px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">130px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-settings&#123;width:<span class="number">12px</span>;<span class="attribute">height</span>:<span class="number">12px</span>;<span class="attribute">margin</span>:<span class="number">3px</span> <span class="number">4px</span> <span class="number">0</span>;<span class="attribute">opacity</span>:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-like&#123;width:<span class="number">14px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">117px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-share&#123;width:<span class="number">18px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">234px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-reply&#123;width:<span class="number">18px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">105px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-delete&#123;width:<span class="number">13px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">176px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-icon-report&#123;width:<span class="number">12px</span>;<span class="attribute">height</span>:<span class="number">12px</span>;<span class="attribute">background-position</span>:<span class="number">0</span> -<span class="number">189px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-time&#123;font-size:<span class="number">12px</span>;*<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">margin-right</span>:<span class="number">8px</span>;<span class="attribute">color</span>:<span class="number">#999</span>;_zoom:<span class="number">1</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-children&#123;margin-left:<span class="number">38px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-children .ds-avatar&#123;width:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-children .ds-avatar img&#123;width:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-children .ds-post-self&#123;padding-left:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset ul.ds-children .ds-comment-body&#123;padding-left:<span class="number">38px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator&#123;border-bottom:<span class="number">1px</span> solid rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.13</span>);<span class="attribute">text-align</span>:right;<span class="attribute">padding-bottom</span>:<span class="number">15px</span>;<span class="attribute">clear</span>:both;<span class="attribute">line-height</span>:<span class="number">1em</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator div.ds-border&#123;border-top:<span class="number">1px</span> solid rgba(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.7</span>);<span class="attribute">margin-bottom</span>:<span class="number">15px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator a&#123;font-size:<span class="number">12px</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">3px</span>;<span class="attribute">padding</span>:<span class="number">2px</span> <span class="number">5px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid transparent&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator a:hover,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator a.ds-current&#123;-webkit-border-radius:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">background-color</span>:rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.03</span>)&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-paginator a.ds-current&#123;color:<span class="number">#d32</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-powered-by&#123;font-size:<span class="number">12px</span>;<span class="attribute">text-align</span>:right;<span class="attribute">padding</span>:<span class="number">10px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-powered-by a&#123;color:<span class="number">#999</span>;<span class="attribute">text-decoration</span>:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset .ds-powered-by a:hover&#123;color:<span class="number">#555</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-transition .ds-post-button,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-transition .ds-more a&#123;background:url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) repeat-x <span class="meta">!important</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-transition .ds-post-button:hover,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-transition .ds-more a:hover&#123;background-position:<span class="number">0</span> -<span class="number">30px</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-transition .ds-like-thread-button&#123;background:url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) repeat-x&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-opacity li.ds-post&#123;border-top:<span class="number">1px</span> solid <span class="number">#ddd</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-opacity .ds-comments,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-opacity .ds-paginator&#123;border-bottom:<span class="number">1px</span> solid <span class="number">#ddd</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-opacity .ds-post-self&#123;border-top:none&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-no-opacity .ds-tab a.ds-current&#123;background:<span class="number">#f8f8f8</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 .ds-post-report,<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 .ds-post-delete&#123;display:inline <span class="meta">!important</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 .ds-textarea-wrapper&#123;padding:<span class="number">10px</span> <span class="number">10px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 .ds-textarea-wrapper textarea&#123;width:<span class="number">95%</span>;<span class="attribute">color</span>:<span class="number">#333</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 .ds-post&#123;width:<span class="number">100%</span>;<span class="attribute">float</span>:left&#125;<span class="selector-id">#ds-thread</span> <span class="selector-id">#ds-reset</span><span class="selector-class">.ds-ie6</span> <span class="selector-class">.ds-tab</span> <span class="selector-tag">a</span><span class="selector-class">.ds-current</span>&#123;<span class="attribute">padding-bottom</span>:<span class="number">5px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 <span class="number">#d</span>s-ctx-bubble .ds-arrow&#123;bottom:-<span class="number">8px</span>&#125;<span class="number">#d</span>s-thread <span class="number">#d</span>s-reset.ds-ie6 <span class="number">#d</span>s-ctx-bubble .ds-arrow-border&#123;bottom:-<span class="number">9px</span>&#125;<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-post-self&#123;padding:<span class="number">8px</span>&#125;<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-comment-body,<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-replybox&#123;padding-left:<span class="number">38px</span>&#125;<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-avatar img&#123;width:<span class="number">30px</span>;<span class="attribute">height</span>:<span class="number">30px</span>&#125;<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-post-button&#123;width:<span class="number">70px</span>&#125;<span class="number">#d</span>s-thread.ds-narrow <span class="number">#d</span>s-reset .ds-post-options&#123;margin-right:<span class="number">70px</span>&#125;<span class="number">#d</span>s-smilies-tooltip&#123;border:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">position</span>:absolute;<span class="attribute">width</span>:<span class="number">400px</span>;<span class="attribute">background-color</span>:<span class="number">#fff</span>;<span class="attribute">z-index</span>:<span class="number">9999</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.2</span>);<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;-webkit-<span class="attribute">border-radius</span>:<span class="number">3px</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-smilies-tooltip a&#123;cursor:pointer&#125;<span class="number">#d</span>s-smilies-tooltip ul&#123;list-style-type:none;<span class="attribute">padding</span>:<span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-smilies-tooltip ul.ds-smilies-tabs&#123;width:<span class="number">119px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">left</span>:<span class="number">0</span>;<span class="attribute">height</span>:<span class="number">159px</span>;<span class="attribute">overflow-y</span>:auto;<span class="attribute">background</span>:<span class="number">#f8f8f8</span>;<span class="attribute">border-right</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">border-top-left-radius</span>:<span class="number">3px</span>;<span class="attribute">border-bottom-left-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-smilies-tooltip ul.ds-smilies-tabs li a&#123;color:<span class="number">#999</span>;<span class="attribute">padding</span>:<span class="number">6px</span> <span class="number">10px</span>;<span class="attribute">display</span>:block;<span class="attribute">border-bottom</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">background-color</span>:<span class="number">#fff</span>;<span class="attribute">background-repeat</span>:repeat-x;<span class="attribute">background-image</span>:-khtml-gradient(linear, left top, left bottom, from(<span class="number">#fff</span>), to(<span class="number">#e9e9e9</span>));<span class="attribute">background</span>:-moz-linear-gradient(top, <span class="number">#fff</span> <span class="number">0</span>, <span class="number">#e9e9e9</span> <span class="number">100%</span>);<span class="attribute">background</span>:-webkit-gradient(linear, left top, left bottom, color-stop(<span class="number">0</span>, <span class="number">#fff</span>), color-stop(<span class="number">100%</span>, <span class="number">#e9e9e9</span>));<span class="attribute">background</span>:-webkit-linear-gradient(top, <span class="number">#fff</span> <span class="number">0</span>, <span class="number">#e9e9e9</span> <span class="number">100%</span>);<span class="attribute">background</span>:-ms-linear-gradient(top, <span class="number">#fff</span> <span class="number">0</span>, <span class="number">#e9e9e9</span> <span class="number">100%</span>);<span class="attribute">background</span>:linear-gradient(top, <span class="number">#fff</span> <span class="number">0</span>, <span class="number">#e9e9e9</span> <span class="number">100%</span>);<span class="attribute">filter</span>:progid:DXImageTransform.Microsoft.gradient(startColorstr=<span class="string">'#ffffff'</span>,endColorstr=<span class="string">'#e9e9e9'</span>,GradientType=<span class="number">0</span>);<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">line-height</span>:<span class="number">1.3em</span>&#125;<span class="number">#d</span>s-smilies-tooltip ul.ds-smilies-tabs li:first-child a&#123;border-top-left-radius:<span class="number">3px</span>&#125;<span class="number">#d</span>s-smilies-tooltip ul.ds-smilies-tabs li a.ds-current&#123;color:<span class="number">#666</span>;<span class="attribute">background</span>:<span class="number">#e3e3e3</span>;<span class="attribute">filter</span>:none;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">0</span> <span class="number">4px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.1</span>)&#125;<span class="number">#d</span>s-smilies-tooltip .ds-smilies-container&#123;padding:<span class="number">10px</span> <span class="number">5px</span>;<span class="attribute">height</span>:<span class="number">140px</span>;<span class="attribute">margin-left</span>:<span class="number">125px</span>;<span class="attribute">overflow-y</span>:auto&#125;<span class="number">#d</span>s-smilies-tooltip .ds-smilies-container li&#123;list-style:none;<span class="attribute">float</span>:left;<span class="attribute">width</span>:<span class="number">26px</span>;<span class="attribute">height</span>:<span class="number">26px</span>;<span class="attribute">text-align</span>:center;<span class="attribute">cursor</span>:pointer&#125;<span class="number">#d</span>s-smilies-tooltip .ds-smilies-container li img&#123;visibility:visible&#125;<span class="number">#d</span>s-smilies-tooltip .ds-smilies-container li:hover&#123;position:relative;<span class="attribute">top</span>:-<span class="number">1px</span>&#125;<span class="number">#d</span>s-wrapper&#123;left:<span class="number">0</span>;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">top</span>:<span class="number">20%</span>;<span class="attribute">bottom</span>:<span class="number">0</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">margin</span>:auto;<span class="attribute">z-index</span>:<span class="number">9999</span>;<span class="attribute">position</span>:fixed;_position:absolute;<span class="attribute">text-align</span>:center;<span class="attribute">color</span>:<span class="number">#777</span>&#125;<span class="number">#d</span>s-wrapper .ds-dialog,<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset.ds-dialog&#123;margin:<span class="number">0</span> auto;<span class="attribute">text-align</span>:left;_zoom:<span class="number">1</span>;<span class="attribute">width</span>:<span class="number">480px</span>;<span class="attribute">max-width</span>:<span class="number">100%</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset.ds-dialog-bind-more .ds-service-list&#123;width:<span class="number">50%</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset a&#123;cursor:pointer;<span class="attribute">text-decoration</span>:none;<span class="attribute">color</span>:<span class="number">#777</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-inner&#123;width:<span class="number">100%</span>;<span class="attribute">position</span>:relative;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">background</span>:<span class="number">#fff</span> url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) <span class="number">0</span> -<span class="number">90px</span> repeat-x;<span class="attribute">text-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">0</span> <span class="number">#fff</span>;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> <span class="number">#fff</span>,<span class="number">0</span> <span class="number">2px</span> <span class="number">6px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.4</span>)&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-inner .ds-unread-list&#123;max-height:<span class="number">300px</span>;<span class="attribute">overflow-y</span>:auto&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-control-group&#123;margin:<span class="number">18px</span> <span class="number">0</span>;<span class="attribute">position</span>:relative;<span class="attribute">padding-right</span>:<span class="number">80px</span>;<span class="attribute">max-width</span>:<span class="number">166px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-control-group input&#123;color:<span class="number">#777</span>;<span class="attribute">width</span>:<span class="number">100%</span>;<span class="attribute">font-size</span>:<span class="number">13px</span>;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">padding</span>:<span class="number">4px</span> <span class="number">80px</span> <span class="number">6px</span> <span class="number">6px</span>;<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">1px</span> <span class="number">3px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.1</span>)&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-control-group input:focus&#123;border-color:<span class="number">#08b5fb</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-control-group label&#123;font-size:<span class="number">13px</span>;<span class="attribute">color</span>:<span class="number">#ccc</span>;<span class="attribute">letter-spacing</span>:<span class="number">1px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">top</span>:<span class="number">8px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset tr&#123;height:<span class="number">45px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset button&#123;cursor:pointer;<span class="attribute">color</span>:<span class="number">#555</span>;<span class="attribute">background-color</span>:<span class="number">#e6e6e6</span>;<span class="attribute">background-repeat</span>:no-repeat;<span class="attribute">background-image</span>:-webkit-gradient(linear, <span class="number">0</span> <span class="number">0</span>, <span class="number">0</span> <span class="number">100%</span>, from(<span class="number">#fff</span>), color-stop(<span class="number">25%</span>, <span class="number">#fff</span>), to(<span class="number">#e6e6e6</span>));<span class="attribute">background-image</span>:-webkit-linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:-moz-linear-gradient(top, <span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:-ms-linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);<span class="attribute">background-image</span>:linear-gradient(<span class="number">#fff</span>, <span class="number">#fff</span> <span class="number">25%</span>, <span class="number">#e6e6e6</span>);-webkit-<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;-moz-<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;<span class="attribute">transition</span>:all .<span class="number">15s</span> linear;<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>;<span class="attribute">display</span>:inline-block;<span class="attribute">font-size</span>:<span class="number">15px</span>;<span class="attribute">height</span>:<span class="number">30px</span>;<span class="attribute">width</span>:<span class="number">100px</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset button:hover&#123;background-position:<span class="number">0</span> -<span class="number">15px</span>;<span class="attribute">color</span>:<span class="number">#333</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset button:active&#123;top:<span class="number">0</span>;-webkit-<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">2px</span> <span class="number">4px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.15</span>),<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.05</span>);<span class="attribute">box-shadow</span>:inset <span class="number">0</span> <span class="number">2px</span> <span class="number">4px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.15</span>),<span class="number">0</span> <span class="number">1px</span> <span class="number">2px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.05</span>)&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset h2&#123;display:block;<span class="attribute">font-weight</span>:normal;<span class="attribute">font-size</span>:<span class="number">16px</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">15px</span> <span class="number">0</span>;<span class="attribute">color</span>:<span class="number">#555</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-body&#123;padding:<span class="number">30px</span> <span class="number">30px</span> <span class="number">25px</span>;<span class="attribute">position</span>:relative;<span class="attribute">overflow</span>:hidden&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-icons-<span class="number">32</span>&#123;height:<span class="number">32px</span>;<span class="attribute">margin-bottom</span>:<span class="number">20px</span>;<span class="attribute">overflow</span>:hidden&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-icons-<span class="number">32</span> a&#123;float:left;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">5px</span> <span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset ul li&#123;margin:<span class="number">10px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-service-list&#123;width:<span class="number">45%</span>;<span class="attribute">float</span>:left&#125;<span class="selector-id">#ds-wrapper</span> <span class="selector-id">#ds-reset</span> <span class="selector-class">.ds-service-list</span> <span class="selector-class">.ds-more-services</span>&#123;<span class="attribute">display</span>:none&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-icon-ok&#123;background-position:<span class="number">0</span> -<span class="number">203px</span>;<span class="attribute">width</span>:<span class="number">12px</span>;<span class="attribute">height</span>:<span class="number">12px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-quote&#123;margin:<span class="number">10px</span> <span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">6px</span> <span class="number">10px</span>;<span class="attribute">background</span>:<span class="number">#f8f8f8</span>;<span class="attribute">line-height</span>:<span class="number">1.5em</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">overflow-y</span>:auto;<span class="attribute">max-height</span>:<span class="number">180px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-textarea-wrapper&#123;border:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">padding</span>:<span class="number">0</span> <span class="number">20px</span> <span class="number">0</span> <span class="number">0</span>;<span class="attribute">position</span>:relative;<span class="attribute">margin</span>:<span class="number">12px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-textarea-wrapper textarea&#123;width:<span class="number">100%</span>;<span class="attribute">height</span>:<span class="number">54px</span>;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">resize</span>:none;<span class="attribute">padding</span>:<span class="number">6px</span> <span class="number">10px</span>;<span class="attribute">overflow</span>:auto&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-textarea-wrapper .ds-hidden-text&#123;top:<span class="number">0</span>;<span class="attribute">left</span>:<span class="number">10px</span>;<span class="attribute">right</span>:<span class="number">10px</span>;<span class="attribute">position</span>:absolute;<span class="attribute">visibility</span>:hidden;<span class="attribute">word-wrap</span>:break-word&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-textarea-wrapper textarea,<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-textarea-wrapper .ds-hidden-text&#123;font-size:<span class="number">13px</span>;<span class="attribute">line-height</span>:<span class="number">1.5em</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-actions&#123;position:relative;<span class="attribute">height</span>:<span class="number">30px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-actions button&#123;display:block;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">right</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-close&#123;position:absolute;<span class="attribute">bottom</span>:<span class="number">13px</span>;<span class="attribute">right</span>:<span class="number">11px</span>;<span class="attribute">display</span>:block;<span class="attribute">width</span>:<span class="number">13px</span>;<span class="attribute">height</span>:<span class="number">13px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">background</span>:transparent url(<span class="string">"//static.duoshuo.com/images/sprites.png"</span>) <span class="number">0</span> -<span class="number">163px</span> no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/sprites.gif"</span>)&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-close:hover&#123;background-position:<span class="number">0</span> -<span class="number">176px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-logo&#123;display:inline-block;<span class="attribute">width</span>:<span class="number">64px</span>;<span class="attribute">height</span>:<span class="number">21px</span>;<span class="attribute">margin-right</span>:<span class="number">10px</span>;<span class="attribute">background</span>:url(<span class="string">"//static.duoshuo.com/images/logo.png"</span>) <span class="number">0</span> <span class="number">0</span> no-repeat&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-footer&#123;clear:both;<span class="attribute">border-top</span>:<span class="number">1px</span> dotted <span class="number">#ccc</span>;<span class="attribute">padding</span>:<span class="number">10px</span> <span class="number">15px</span> <span class="number">6px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-dialog-footer span&#123;color:<span class="number">#999</span>;<span class="attribute">position</span>:relative;<span class="attribute">top</span>:-<span class="number">6px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-connect&#123;display:none&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li&#123;position:relative;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">0</span>;<span class="attribute">border-top</span>:<span class="number">1px</span> solid <span class="number">#eee</span>;<span class="attribute">line-height</span>:<span class="number">1.5em</span>;<span class="attribute">color</span>:<span class="number">#777</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li a&#123;color:<span class="number">#d32</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li a:hover&#123;color:<span class="number">#e45c4e</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li a[rel~=<span class="string">"author"</span>]&#123;color:<span class="number">#777</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li .ds-delete&#123;display:none;<span class="attribute">position</span>:absolute;<span class="attribute">right</span>:<span class="number">0</span>;<span class="attribute">bottom</span>:<span class="number">10px</span>;<span class="attribute">text-indent</span>:-<span class="number">9999px</span>;<span class="attribute">width</span>:<span class="number">14px</span>;<span class="attribute">height</span>:<span class="number">14px</span>;<span class="attribute">overflow</span>:hidden;<span class="attribute">background</span>:transparent url(<span class="string">"//static.duoshuo.com/images/delete.gif"</span>) no-repeat scroll <span class="number">0</span> -<span class="number">14px</span>&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset .ds-unread-list li:hover .ds-delete&#123;display:block&#125;<span class="number">#d</span>s-wrapper <span class="number">#d</span>s-reset.ds-touch .ds-unread-list li .ds-delete&#123;display:block&#125;<span class="number">#d</span>s-wrapper.ds-no-transition <span class="number">#d</span>s-reset button&#123;background:url(<span class="string">"//static.duoshuo.com/images/bg_sprites.png"</span>) repeat-x <span class="meta">!important</span>&#125;<span class="number">#d</span>s-wrapper.ds-no-transition <span class="number">#d</span>s-reset button:hover&#123;background-position:<span class="number">0</span> -<span class="number">30px</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-wrapper.ds-no-transition <span class="number">#d</span>s-reset.ds-dialog&#123;background-image:url(<span class="string">"//static.duoshuo.com/images/black.png"</span>)&#125;<span class="number">#d</span>s-wrapper.ds-ie6 <span class="number">#d</span>s-reset&#123;margin-top:<span class="number">0</span>&#125;<span class="number">#d</span>s-wrapper.ds-ie6 <span class="number">#d</span>s-reset .ds-dialog-footer span&#123;top:-<span class="number">3px</span>&#125;<span class="number">#d</span>s-notify&#123;position:fixed;*<span class="attribute">position</span>:absolute;<span class="attribute">z-index</span>:<span class="number">9999</span>;<span class="attribute">max-width</span>:<span class="number">144px</span>;_width:<span class="number">130px</span>;<span class="attribute">display</span>:block;<span class="attribute">float</span>:none;<span class="attribute">padding</span>:<span class="number">8px</span> <span class="number">12px</span>;<span class="attribute">background-color</span>:<span class="number">#fff</span>;-webkit-<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">border-radius</span>:<span class="number">5px</span>;<span class="attribute">box-shadow</span>:<span class="number">0</span> <span class="number">1px</span> <span class="number">1px</span> rgba(<span class="number">0</span>,<span class="number">0</span>,<span class="number">0</span>,<span class="number">0.25</span>);<span class="attribute">border</span>:<span class="number">1px</span> solid <span class="number">#aaa</span>&#125;<span class="number">#d</span>s-notify <span class="number">#d</span>s-reset&#123;line-height:<span class="number">14px</span>&#125;<span class="number">#d</span>s-notify <span class="number">#d</span>s-reset a.ds-logo&#123;width:<span class="number">18px</span>;<span class="attribute">height</span>:<span class="number">14px</span>;<span class="attribute">background</span>:transparent url(<span class="string">"//static.duoshuo.com/images/sprites.png"</span>) <span class="number">0</span> -<span class="number">220px</span> no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/sprites.gif"</span>);<span class="attribute">position</span>:absolute;<span class="attribute">display</span>:block;<span class="attribute">top</span>:<span class="number">8px</span>;<span class="attribute">left</span>:<span class="number">12px</span>&#125;<span class="number">#d</span>s-notify <span class="number">#d</span>s-reset span.ds-unread-count&#123;font-weight:bold;<span class="attribute">color</span>:<span class="number">#e32</span>&#125;<span class="number">#d</span>s-notify <span class="number">#d</span>s-reset ul.ds-notify-unread&#123;line-height:<span class="number">150%</span>;<span class="attribute">display</span>:inline-block;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">22px</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-notify <span class="number">#d</span>s-reset ul.ds-notify-unread li a&#123;color:<span class="number">#d32</span>;<span class="attribute">text-decoration</span>:none&#125;<span class="number">#d</span>s-recent-comments li.ds-comment&#123;list-style-type:none;<span class="attribute">position</span>:relative <span class="meta">!important</span>;<span class="attribute">margin</span>:<span class="number">0</span> <span class="meta">!important</span>;<span class="attribute">padding</span>:<span class="number">6px</span> <span class="number">0</span> <span class="meta">!important</span>;_zoom:<span class="number">1</span>;<span class="attribute">border-top</span>:<span class="number">1px</span> solid <span class="number">#dcdcdc</span>;<span class="attribute">word-wrap</span>:break-word;<span class="attribute">font-size</span>:<span class="number">13px</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment a&#123;display:inline&#125;<span class="number">#d</span>s-recent-comments li.ds-comment div&#123;padding:<span class="number">0</span>;<span class="attribute">margin</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-avatar&#123;position:absolute <span class="meta">!important</span>;<span class="attribute">top</span>:<span class="number">6px</span> <span class="meta">!important</span>;<span class="attribute">left</span>:<span class="number">0</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-avatar a&#123;display:block&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-meta&#123;*margin-left:-<span class="number">15px</span>;_margin-<span class="attribute">left</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-time&#123;font-size:<span class="number">10px</span>;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">margin-left</span>:<span class="number">5px</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-thread-title&#123;margin:<span class="number">0</span> <span class="number">0</span> <span class="number">4px</span> <span class="number">0</span>;<span class="attribute">line-height</span>:<span class="number">13px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">color</span>:<span class="number">#777</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-thread-title a&#123;font-size:<span class="number">12px</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment .ds-excerpt&#123;line-height:<span class="number">18px</span>&#125;<span class="number">#d</span>s-recent-comments li.ds-comment.ds-show-avatars&#123;padding-left:<span class="number">38px</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-recent-visitors .ds-avatar&#123;display:inline;<span class="attribute">padding</span>:<span class="number">0</span> <span class="meta">!important</span>;<span class="attribute">margin</span>:<span class="number">4px</span> <span class="meta">!important</span>&#125;<span class="number">#d</span>s-login .ds-icons-<span class="number">32</span> a&#123;float:left;<span class="attribute">margin</span>:<span class="number">0</span> <span class="number">5px</span> <span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left ul,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right ul,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline ul&#123;list-style:none;<span class="attribute">margin</span>:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>;*zoom:<span class="number">1</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left ul:after,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right ul:after,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline ul:after&#123;content:<span class="string">"."</span>;<span class="attribute">display</span>:block;<span class="attribute">height</span>:<span class="number">0</span>;<span class="attribute">clear</span>:both;<span class="attribute">visibility</span>:hidden&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left ul li,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right ul li,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline ul li&#123;list-style:none;<span class="attribute">float</span>:left;<span class="attribute">font-size</span>:<span class="number">14px</span>;<span class="attribute">padding</span>:<span class="number">7px</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline&#123;position:relative&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline ul li&#123;margin-left:<span class="number">8px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-inline ul li:first-child&#123;margin-left:<span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right&#123;position:fixed;<span class="attribute">top</span>:<span class="number">50%</span>;<span class="attribute">z-index</span>:<span class="number">1000</span>;-webkit-<span class="attribute">transition</span>:all .<span class="number">2s</span> linear;-moz-<span class="attribute">transition</span>:all .<span class="number">2s</span> linear;<span class="attribute">transition</span>:all .<span class="number">2s</span> linear&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left&#123;left:<span class="number">0</span>;-webkit-<span class="attribute">transform</span>:translate(-<span class="number">100%</span>, -<span class="number">50%</span>);-ms-<span class="attribute">transform</span>:translate(-<span class="number">100%</span>, -<span class="number">50%</span>);-o-<span class="attribute">transform</span>:translate(-<span class="number">100%</span>, -<span class="number">50%</span>);<span class="attribute">transform</span>:translate(-<span class="number">100%</span>, -<span class="number">50%</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right&#123;right:<span class="number">0</span>;-webkit-<span class="attribute">transform</span>:translate(<span class="number">100%</span>, -<span class="number">50%</span>);-ms-<span class="attribute">transform</span>:translate(<span class="number">100%</span>, -<span class="number">50%</span>);-o-<span class="attribute">transform</span>:translate(<span class="number">100%</span>, -<span class="number">50%</span>);<span class="attribute">transform</span>:translate(<span class="number">100%</span>, -<span class="number">50%</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-aside-toggle&#123;width:<span class="number">28px</span>;<span class="attribute">padding</span>:<span class="number">23px</span> <span class="number">2px</span>;<span class="attribute">background</span>:<span class="number">#e94c4c</span>;<span class="attribute">color</span>:<span class="number">#fff</span>;<span class="attribute">position</span>:absolute;<span class="attribute">top</span>:<span class="number">0</span>;<span class="attribute">text-align</span>:center;<span class="attribute">font-size</span>:<span class="number">16px</span>;<span class="attribute">font-weight</span>:bolder;<span class="attribute">cursor</span>:pointer&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left .ds-share-aside-toggle&#123;right:-<span class="number">32px</span>;<span class="attribute">border-top-right-radius</span>:<span class="number">3px</span>;<span class="attribute">border-bottom-right-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-left .ds-share-icons&#123;border-top-right-radius:<span class="number">0</span>;<span class="attribute">border-top-left-radius</span>:<span class="number">0</span>;<span class="attribute">border-bottom-left-radius</span>:<span class="number">0</span>;<span class="attribute">border-left</span>:none&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right .ds-share-aside-toggle&#123;left:-<span class="number">32px</span>;<span class="attribute">border-top-left-radius</span>:<span class="number">3px</span>;<span class="attribute">border-bottom-left-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.ds-share-aside-right .ds-share-icons&#123;border-top-left-radius:<span class="number">0</span>;<span class="attribute">border-top-right-radius</span>:<span class="number">0</span>;<span class="attribute">border-bottom-right-radius</span>:<span class="number">0</span>;<span class="attribute">border-right</span>:none&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.slide-to-left&#123;-webkit-transform:translate(<span class="number">0</span>, -<span class="number">50%</span>);-ms-<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>);-o-<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>);<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset.slide-to-right&#123;-webkit-transform:translate(<span class="number">0</span>, -<span class="number">50%</span>);-ms-<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>);-o-<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>);<span class="attribute">transform</span>:translate(<span class="number">0</span>, -<span class="number">50%</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-weibo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-sohu,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-renren,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-netease,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qqt,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-kaixin,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-douban,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-msn,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qzone,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-duoshuo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-<span class="number">360</span>,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-alipay,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qq,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-baidu,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-taobao,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-google,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-more,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-wechat,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-diandian,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-huaban,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-duitang,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-youdao,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-pengyou,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-facebook,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-twitter,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-linkedin,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-meilishuo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-mogujie&#123;height:<span class="number">32px</span>;<span class="attribute">width</span>:<span class="number">32px</span>;<span class="attribute">text-decoration</span>:none;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">display</span>:block;<span class="attribute">overflow</span>:hidden;<span class="attribute">background-image</span>:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-32.png"</span>);<span class="attribute">background-repeat</span>:no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-32.gif"</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-weibo&#123;background-position:<span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-sohu&#123;background-position:<span class="number">0</span> -<span class="number">32px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-renren&#123;background-position:<span class="number">0</span> -<span class="number">64px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-netease&#123;background-position:<span class="number">0</span> -<span class="number">96px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qqt&#123;background-position:<span class="number">0</span> -<span class="number">128px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-kaixin&#123;background-position:<span class="number">0</span> -<span class="number">160px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-douban&#123;background-position:<span class="number">0</span> -<span class="number">192px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-msn&#123;background-position:<span class="number">0</span> -<span class="number">224px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qzone&#123;background-position:<span class="number">0</span> -<span class="number">256px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-duoshuo&#123;background-position:<span class="number">0</span> -<span class="number">288px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-<span class="number">360</span>&#123;background-position:<span class="number">0</span> -<span class="number">320px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-alipay&#123;background-position:<span class="number">0</span> -<span class="number">352px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-qq&#123;background-position:<span class="number">0</span> -<span class="number">384px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-baidu&#123;background-position:<span class="number">0</span> -<span class="number">416px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-taobao&#123;background-position:<span class="number">0</span> -<span class="number">448px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-google&#123;background-position:<span class="number">0</span> -<span class="number">480px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-more&#123;background-position:<span class="number">0</span> -<span class="number">512px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-wechat&#123;background-position:<span class="number">0</span> -<span class="number">544px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-diandian&#123;background-position:<span class="number">0</span> -<span class="number">576px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-huaban&#123;background-position:<span class="number">0</span> -<span class="number">608px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-duitang&#123;background-position:<span class="number">0</span> -<span class="number">640px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-youdao&#123;background-position:<span class="number">0</span> -<span class="number">672px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-pengyou&#123;background-position:<span class="number">0</span> -<span class="number">704px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-facebook&#123;background-position:<span class="number">0</span> -<span class="number">736px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-twitter&#123;background-position:<span class="number">0</span> -<span class="number">768px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-linkedin&#123;background-position:<span class="number">0</span> -<span class="number">800px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-meilishuo&#123;background-position:<span class="number">0</span> -<span class="number">832px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .ds-mogujie&#123;background-position:<span class="number">0</span> -<span class="number">864px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">32</span> .flat&#123;background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-flat-32.png"</span>);_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-flat-32.gif"</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-weibo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-sohu,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-renren,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-netease,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qqt,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-kaixin,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-douban,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-msn,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qzone,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-duoshuo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-<span class="number">360</span>,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-alipay,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qq,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-baidu,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-taobao,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-google,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-more,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-wechat,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-diandian,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-huaban,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-duitang,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-youdao,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-pengyou,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-facebook,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-twitter,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-linkedin,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-meilishuo,<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-mogujie&#123;line-height:<span class="number">16px</span>;<span class="attribute">padding-left</span>:<span class="number">20px</span>;<span class="attribute">text-decoration</span>:none;<span class="attribute">color</span>:<span class="number">#999</span>;<span class="attribute">display</span>:block;<span class="attribute">overflow</span>:hidden;<span class="attribute">background-image</span>:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.png?v=2"</span>);<span class="attribute">background-repeat</span>:no-repeat;_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color.gif?v=2"</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-weibo&#123;background-position:<span class="number">0</span> <span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-sohu&#123;background-position:<span class="number">0</span> -<span class="number">16px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-renren&#123;background-position:<span class="number">0</span> -<span class="number">32px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-netease&#123;background-position:<span class="number">0</span> -<span class="number">48px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qqt&#123;background-position:<span class="number">0</span> -<span class="number">64px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-kaixin&#123;background-position:<span class="number">0</span> -<span class="number">80px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-douban&#123;background-position:<span class="number">0</span> -<span class="number">96px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-msn&#123;background-position:<span class="number">0</span> -<span class="number">112px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qzone&#123;background-position:<span class="number">0</span> -<span class="number">128px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-duoshuo&#123;background-position:<span class="number">0</span> -<span class="number">144px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-<span class="number">360</span>&#123;background-position:<span class="number">0</span> -<span class="number">160px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-alipay&#123;background-position:<span class="number">0</span> -<span class="number">176px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-qq&#123;background-position:<span class="number">0</span> -<span class="number">192px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-baidu&#123;background-position:<span class="number">0</span> -<span class="number">208px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-taobao&#123;background-position:<span class="number">0</span> -<span class="number">224px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-google&#123;background-position:<span class="number">0</span> -<span class="number">240px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-more&#123;background-position:<span class="number">0</span> -<span class="number">256px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-wechat&#123;background-position:<span class="number">0</span> -<span class="number">272px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-diandian&#123;background-position:<span class="number">0</span> -<span class="number">288px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-huaban&#123;background-position:<span class="number">0</span> -<span class="number">304px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-duitang&#123;background-position:<span class="number">0</span> -<span class="number">320px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-youdao&#123;background-position:<span class="number">0</span> -<span class="number">336px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-pengyou&#123;background-position:<span class="number">0</span> -<span class="number">352px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-facebook&#123;background-position:<span class="number">0</span> -<span class="number">368px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-twitter&#123;background-position:<span class="number">0</span> -<span class="number">384px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-linkedin&#123;background-position:<span class="number">0</span> -<span class="number">400px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-meilishuo&#123;background-position:<span class="number">0</span> -<span class="number">416px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .ds-mogujie&#123;background-position:<span class="number">0</span> -<span class="number">432px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-<span class="number">16</span> .flat&#123;background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-flat.png"</span>);_background-image:url(<span class="string">"//static.duoshuo.com/images/service-icons-color-flat.gif"</span>)&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons&#123;border:<span class="number">1px</span> solid <span class="number">#ccc</span>;<span class="attribute">background</span>:<span class="number">#fff</span>;<span class="attribute">border-radius</span>:<span class="number">3px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-inner&#123;width:<span class="number">208px</span>;<span class="attribute">padding</span>:<span class="number">10px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-inner ul&#123;margin:<span class="number">0</span>;<span class="attribute">padding</span>:<span class="number">0</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-inner ul li&#123;padding-left:<span class="number">8px</span>;<span class="attribute">margin-left</span>:<span class="number">0</span>;<span class="attribute">width</span>:<span class="number">92px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-inner ul li:hover&#123;border-radius:<span class="number">3px</span>;<span class="attribute">background</span>:<span class="number">#eee</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-inner ul li:nth-child(even)&#123;margin-left:<span class="number">8px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons .ds-share-icons-footer&#123;text-align:right;<span class="attribute">line-height</span>:<span class="number">30px</span>;<span class="attribute">font-size</span>:<span class="number">12px</span>;<span class="attribute">color</span>:<span class="number">#ccc</span>;<span class="attribute">background-color</span>:<span class="number">#eee</span>;<span class="attribute">padding-right</span>:<span class="number">10px</span>&#125;<span class="number">#d</span>s-share <span class="number">#d</span>s-reset .ds-share-icons-more&#123;top:<span class="number">30px</span>;<span class="attribute">left</span>:<span class="number">0</span>;<span class="attribute">position</span>:absolute;<span class="attribute">z-index</span>:<span class="number">1000</span>&#125;<span class="number">#d</span>s-share.ds-no-transition <span class="number">#d</span>s-reset.ds-share-aside-left&#123;left:-<span class="number">229px</span>;<span class="attribute">transform</span>:none&#125;<span class="number">#d</span>s-share.ds-no-transition <span class="number">#d</span>s-reset.ds-share-aside-right&#123;right:-<span class="number">229px</span>;<span class="attribute">transform</span>:none&#125;<span class="number">#d</span>s-share .ds-share-aside-left,<span class="number">#d</span>s-share .ds-share-aside-right&#123;width:<span class="number">230px</span>;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+<span class="number">200</span>))&#125;<span class="number">#d</span>s-share .ds-share-aside-left&#123;_left:expression(eval(document.documentElement.scrollLeft-<span class="number">230</span>))&#125;<span class="number">#d</span>s-share .ds-share-aside-right&#123;_right:auto;_left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,<span class="number">10</span>)||<span class="number">0</span>)-(parseInt(this.currentStyle.marginRight,<span class="number">10</span>)||<span class="number">0</span> - <span class="number">230</span>))&#125;</div></pre></td></tr></table></figure>
<p>具体样式请参照：<a href="https://github.com/Jimmey-Jiang/Hexo/blob/master/themes/spfk/source/css/%E5%A4%9A%E8%AF%B4.css" target="_blank" rel="external">多说.css</a></p>
<h2 id="为Hexo博客添加目录"><a href="#为Hexo博客添加目录" class="headerlink" title="为Hexo博客添加目录"></a>为Hexo博客添加目录</h2><p>Hexo博客系统的核心支持生成目录（Table of Contents），但其默认的主题Landscape并不支持目录的显示。我们只需对Landscape的主题文件稍作修改并添加一点目录的CSS就可以在文章前面显示友好的目录了。</p>
<blockquote>
<p>修改Landscape主题的ejs文件</p>
</blockquote>
<p>我们首先要编辑文章显示页面的模板，也就是themes/landscape/layout/_partial/article.ejs文件。为了将目录生成在正文之前，我们首先在这个文件中找到&lt;%- post.content %&gt;，并在这一行之前加入如下代码：</p>
<figure class="highlight mojolicious"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div></pre></td><td class="code"><pre><div class="line"><span class="xml">    引入文件_partial\article.ejs</span></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl"> <span class="keyword">if</span> (!<span class="keyword">index</span> &amp;&amp; post.toc != false &amp;&amp; !is_page())&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">%</span></span><span class="perl">- partial(<span class="string">'_partial/toc'</span>) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"></div><div class="line"></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl"> <span class="keyword">if</span> (!<span class="keyword">index</span> &amp;&amp; post.toc)&#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl">- partial(<span class="string">'post/toc'</span>) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"toc"</span> <span class="attr">class</span>=<span class="string">"toc-article"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">strong</span> <span class="attr">class</span>=<span class="string">"toc-title"</span>&gt;</span>文章目录<span class="tag">&lt;/<span class="name">strong</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">%</span></span><span class="perl">- toc(post.content) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="css"></span></div><div class="line">    <span class="selector-class">.left-col</span> <span class="selector-class">.switch-btn</span> &#123;</div><div class="line">        <span class="attribute">display</span>: none;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.left-col</span> <span class="selector-class">.switch-area</span> &#123;</div><div class="line">        <span class="attribute">display</span>: none;</div><div class="line">    &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">"button"</span> <span class="attr">id</span>=<span class="string">"tocButton"</span> <span class="attr">value</span>=<span class="string">"隐藏目录"</span>  <span class="attr">title</span>=<span class="string">"点击按钮隐藏或者显示文章目录"</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="perl">- js(<span class="string">'http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min'</span>) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line">    <span class="keyword">var</span> toc_button = <span class="built_in">document</span>.getElementById(<span class="string">"tocButton"</span>);</div><div class="line">    <span class="keyword">var</span> toc_div = <span class="built_in">document</span>.getElementById(<span class="string">"toc"</span>);</div><div class="line">    toc_button.onclick=<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</div><div class="line">        <span class="keyword">if</span> (toc_div.style.display == <span class="string">"none"</span>) &#123;</div><div class="line">            toc_div.style.display = <span class="string">"block"</span>;</div><div class="line">            toc_button.value = <span class="string">"隐藏目录"</span>;</div><div class="line">            <span class="built_in">document</span>.getElementById(<span class="string">"switch-btn"</span>).style.display = <span class="string">"none"</span>;</div><div class="line">            <span class="built_in">document</span>.getElementById(<span class="string">"switch-area"</span>).style.display = <span class="string">"none"</span>;</div><div class="line">        &#125;</div><div class="line">        <span class="keyword">else</span> &#123;</div><div class="line">            toc_div.style.display = <span class="string">"none"</span>;</div><div class="line">            toc_button.value = <span class="string">"显示目录"</span>;</div><div class="line">            <span class="built_in">document</span>.getElementById(<span class="string">"switch-btn"</span>).style.display = <span class="string">"block"</span>;</div><div class="line">            <span class="built_in">document</span>.getElementById(<span class="string">"switch-area"</span>).style.display = <span class="string">"block"</span>;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line"></div><div class="line">    <span class="keyword">if</span> ($(<span class="string">".toc"</span>).length &lt; <span class="number">1</span>) &#123;</div><div class="line">        $(<span class="string">"#toc"</span>).css(<span class="string">"display"</span>,<span class="string">"none"</span>);</div><div class="line">        $(<span class="string">"#tocButton"</span>).css(<span class="string">"display"</span>,<span class="string">"none"</span>);</div><div class="line">        $(<span class="string">".switch-btn"</span>).css(<span class="string">"display"</span>,<span class="string">"block"</span>);</div><div class="line">        $(<span class="string">".switch-area"</span>).css(<span class="string">"display"</span>,<span class="string">"block"</span>);</div><div class="line">    &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="perl"> <span class="keyword">if</span> (theme.toc_nowrap) &#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line">    <span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="css"></span></div><div class="line">        <span class="selector-class">.toc</span> &#123;</div><div class="line">            <span class="attribute">white-space</span>: nowrap;</div><div class="line">            <span class="attribute">overflow-x</span>: hidden;</div><div class="line">        &#125;</div><div class="line">    <span class="tag">&lt;/<span class="name">style</span>&gt;</span></div><div class="line"></div><div class="line">    <span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line">        $(<span class="built_in">document</span>).ready(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</div><div class="line">            $(<span class="string">".toc li a"</span>).mouseover(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</div><div class="line">                <span class="keyword">var</span> title = $(<span class="keyword">this</span>).attr(<span class="string">'href'</span>);</div><div class="line">                $(<span class="keyword">this</span>).attr(<span class="string">"title"</span>, title);</div><div class="line">            &#125;);</div><div class="line">        &#125;)</div><div class="line">    <span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="perl"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div></pre></td></tr></table></figure>
<p>这段代码的含义清晰明了，if语句中有两个条件，!index是为了不在首页的文章摘要中生成目录，post.toc确保了只在显式地标记了toc: true的文章中生成目录。若这两个条件满足，则创建一个目录的<div>。</div></p>
<p>修改完这个文件之后，找一篇包含了多个子标题的文章，并在文章开头的front-matter中添加一句toc: true，在浏览器中访问这篇文章，应该可以看到文章的开头处已经有了带链接的目录。但是这样的目录实在太难看，我们还需要添加相应的CSS来将其指定为我们想要的样式。</p>
<blockquote>
<p>为目录编写CSS文件</p>
</blockquote>
<p>要指定目录的样式，我们要修改的文件是themes/landscape/source/css/_partial/article.styl。在文件的最后，添加如下代码：</p>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div><div class="line">70</div><div class="line">71</div><div class="line">72</div><div class="line">73</div><div class="line">74</div><div class="line">75</div><div class="line">76</div><div class="line">77</div><div class="line">78</div><div class="line">79</div><div class="line">80</div><div class="line">81</div><div class="line">82</div><div class="line">83</div><div class="line">84</div><div class="line">85</div><div class="line">86</div><div class="line">87</div><div class="line">88</div><div class="line">89</div><div class="line">90</div><div class="line">91</div><div class="line">92</div><div class="line">93</div><div class="line">94</div><div class="line">95</div><div class="line">96</div><div class="line">97</div><div class="line">98</div><div class="line">99</div><div class="line">100</div><div class="line">101</div><div class="line">102</div><div class="line">103</div><div class="line">104</div><div class="line">105</div><div class="line">106</div><div class="line">107</div><div class="line">108</div><div class="line">109</div><div class="line">110</div></pre></td><td class="code"><pre><div class="line"><span class="comment">/*toc*/</span></div><div class="line"><span class="selector-id">#tocButton</span> &#123;</div><div class="line">    <span class="attribute">position</span>: fixed;</div><div class="line">    <span class="attribute">border</span>: none;</div><div class="line">    <span class="attribute">left</span>: <span class="number">220px</span>;</div><div class="line">    <span class="attribute">top</span>: <span class="number">382px</span>;</div><div class="line">    <span class="attribute">background</span>: none;</div><div class="line">    <span class="attribute">font-size</span>: .<span class="number">9em</span>;</div><div class="line">    <span class="attribute">font-weight</span>: bold;</div><div class="line">    <span class="attribute">color</span>: lightgray;</div><div class="line">    <span class="attribute">cursor</span>: pointer</div><div class="line">    font-family: inherit;</div><div class="line">    <span class="attribute">outline</span>: none; <span class="comment">/*Remove button border when clicked.*/</span></div><div class="line">    -webkit-appearance: none; <span class="comment">/*Remove iOS button style*/</span></div><div class="line">    &amp;:hover &#123;</div><div class="line">        <span class="attribute">color</span>: <span class="number">#88acdb</span>;</div><div class="line">    &#125;</div><div class="line">&#125;</div><div class="line"><span class="selector-class">.toc-article</span> &#123;</div><div class="line">  <span class="attribute">position</span>: fixed;</div><div class="line">  <span class="attribute">width</span>: <span class="number">230px</span>;</div><div class="line">  <span class="attribute">top</span>: <span class="number">378px</span>;</div><div class="line">  <span class="attribute">bottom</span>: <span class="number">1em</span>;</div><div class="line">  <span class="attribute">left</span>: <span class="number">0</span>;</div><div class="line">  <span class="attribute">margin-left</span>: <span class="number">0em</span>;</div><div class="line">  <span class="attribute">padding</span>: <span class="number">6px</span> <span class="number">10px</span> <span class="number">10px</span> <span class="number">50px</span>;</div><div class="line">  <span class="attribute">border-radius</span>: <span class="number">2.8%</span>;</div><div class="line">  <span class="attribute">overflow</span>: auto;</div><div class="line">&#125;</div><div class="line"><span class="selector-id">#toc</span> &#123;</div><div class="line">    <span class="attribute">float</span>: right;</div><div class="line">    <span class="attribute">font-size</span>: .<span class="number">9em</span>;</div><div class="line">    <span class="attribute">line-height</span>: <span class="number">1.65em</span>;</div><div class="line">    <span class="attribute">z-index</span>: <span class="number">12</span>;</div><div class="line">    <span class="selector-tag">a</span> &#123;</div><div class="line">        <span class="attribute">color</span>: gray;</div><div class="line">        &amp;:visited &#123;</div><div class="line">            <span class="attribute">color</span>: rgba(<span class="number">244</span>, <span class="number">131</span>, <span class="number">133</span>, <span class="number">1</span>);</div><div class="line">        &#125; </div><div class="line">        &amp;:hover &#123;</div><div class="line">            <span class="attribute">color</span>: <span class="number">#88acdb</span>;</div><div class="line">            <span class="attribute">text-decoration</span>: none;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-tag">li</span>:hover &#123;</div><div class="line">        <span class="attribute">background</span>: none;</div><div class="line">        <span class="selector-tag">li</span>:hover &#123;</div><div class="line">            <span class="attribute">background</span>: rgba(<span class="number">158</span>, <span class="number">188</span>, <span class="number">226</span>, .<span class="number">21</span>);</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.toc-title</span> &#123;</div><div class="line">        <span class="attribute">font-weight</span>: bold;</div><div class="line">        <span class="attribute">color</span>: gray;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.toc</span> &#123;</div><div class="line">        <span class="attribute">padding</span>: .<span class="number">7em</span>;</div><div class="line">        <span class="attribute">padding-right</span>: <span class="number">0</span>;</div><div class="line">        <span class="selector-tag">li</span> &#123;</div><div class="line">            <span class="attribute">list-style-type</span>: none;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-tag">ol</span> &#123;</div><div class="line">        <span class="attribute">margin-left</span>: <span class="number">0</span>;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.toc-child</span> &#123;</div><div class="line">        <span class="attribute">padding-left</span>: <span class="number">1.25em</span>;</div><div class="line">        <span class="attribute">margin</span>: <span class="number">4px</span> <span class="number">0</span>; </div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.toc-link</span>:hover &#123;</div><div class="line">        <span class="attribute">background</span>: rgba(<span class="number">158</span>, <span class="number">188</span>, <span class="number">226</span>, .<span class="number">21</span>);</div><div class="line">    &#125;</div><div class="line">&#125;</div><div class="line"></div><div class="line"><span class="selector-class">.copyright</span> &#123;</div><div class="line">    <span class="attribute">width</span>: <span class="number">85%</span>;</div><div class="line">    <span class="attribute">max-width</span>: <span class="number">45em</span>;</div><div class="line">    <span class="attribute">margin</span>: <span class="number">0</span> auto;</div><div class="line">    <span class="attribute">padding</span>: .<span class="number">5em</span> <span class="number">1.8em</span>;</div><div class="line">    <span class="attribute">border</span>: <span class="number">1px</span> solid lightgray;</div><div class="line">    <span class="attribute">font-size</span>: .<span class="number">93em</span>;</div><div class="line">    <span class="attribute">line-height</span>: <span class="number">1.6em</span>;</div><div class="line">    <span class="attribute">word-break</span>: break-word;</div><div class="line">    <span class="attribute">background</span>: rgba(<span class="number">255</span>, <span class="number">255</span>, <span class="number">255</span>, .<span class="number">4</span>);</div><div class="line">    <span class="selector-tag">span</span> &#123;</div><div class="line">        <span class="attribute">margin-right</span>: <span class="number">1em</span>;</div><div class="line">        <span class="attribute">color</span>: <span class="number">#B5B5B5</span>;</div><div class="line">        <span class="attribute">font-weight</span>: bold;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-tag">a</span> &#123;</div><div class="line">        <span class="attribute">color</span>: gray;</div><div class="line">        &amp;:hover &#123;</div><div class="line">            <span class="attribute">font-weight</span>: bold;</div><div class="line">            <span class="attribute">color</span>: <span class="number">#a3d2a3</span>;</div><div class="line">            <span class="attribute">text-decoration</span>: underline;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">    &amp;:hover <span class="selector-tag">p</span> <span class="selector-class">.copy-path</span>::after &#123;</div><div class="line">        <span class="attribute">content</span>: <span class="string">"复制"</span>;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.post-url</span>:hover &#123;</div><div class="line">        <span class="attribute">font-weight</span>: normal;</div><div class="line">    &#125;</div><div class="line">    <span class="selector-class">.copy-path</span> &#123;</div><div class="line">        <span class="attribute">margin-left</span>: <span class="number">1em</span>;</div><div class="line">        &amp;:hover &#123;</div><div class="line">            <span class="attribute">color</span>: gray;</div><div class="line">            <span class="attribute">cursor</span>: pointer;</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<p>第一段的toc-article指定了目录整个<div>的背景色、边框色、倒角半径、各种间距以及最大的宽度。注意这里最好指定目录的最大宽度，我将其设为了28%，也就是文章正文那个框的宽度的28%，也可以设为一个固定的长度，比如在笔记本电脑上16em就是个不错的宽度，但为了能适配各种不同尺寸的屏幕，最好还是设置为百分比。如果不指定最大宽度，遇到比较长的标题时，生成的目录会非常难看。这个最大宽度的设置是我在网上其他添加目录的方法中没有见到的。</div></p>
<p>第二段的toc-title指的就是“文章目录”那四个字，这四个字要比其他字大一些，将其字号设为其他字的120%。</p>
<p>第三段的#toc.toc指定了目录列表的一些细节，将font-size设为0.9em会让目录的字比文章的字稍小一些。最后的.toc-child指定了二级目录的缩进量。</p>
<p>再次生成页面，应该已经可以显示比较美观的目录了。</p>
<blockquote>
<p>收尾工作</p>
</blockquote>
<p>通常情况下我们不需要为每一篇文章都添加目录，因为大部分文章的长度还是相对较短，或者结构简单而没有添加小标题。在我的博客上，需要添加目录的长文还是相对较少的。因为我选择了默认不生成目录，而手动为需要目录的文章添加显式地标记。</p>
<p>下面我就需要编辑每一篇需要添加目录的文章，在文章开头的front-matter中加入toc: true。</p>
<h2 id="插入自定义页面"><a href="#插入自定义页面" class="headerlink" title="插入自定义页面"></a>插入自定义页面</h2><p>仿照Hexo官网，了解到单页面的添加方式。</p>
<blockquote>
<p>添加代码</p>
</blockquote>
<figure class="highlight django"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div></pre></td><td class="code"><pre><div class="line"><span class="xml"></span></div><div class="line">D:\Hexo\Hexos\themes\spfk\layout\plugins.swig</div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"content-wrap"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wrapper"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"inner"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">header</span> <span class="attr">id</span>=<span class="string">"plugin-list-header"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">h1</span> <span class="attr">id</span>=<span class="string">"plugin-list-title"</span>&gt;</span><span class="template-variable">&#123;&#123; page.title &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">h1</span>&gt;</span></span></div><div class="line">        <span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">"search"</span> <span class="attr">id</span>=<span class="string">"plugin-search-input"</span> <span class="attr">placeholder</span>=<span class="string">"Search"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"plugin-list-count"</span>&gt;</span><span class="template-variable">&#123;&#123; site.data[page.data].length &#125;&#125;</span><span class="xml"> items<span class="tag">&lt;/<span class="name">div</span>&gt;</span></span></div><div class="line">      <span class="tag">&lt;/<span class="name">header</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">ul</span> <span class="attr">id</span>=<span class="string">"plugin-list"</span>&gt;</span></div><div class="line">        <span class="template-tag">&#123;% <span class="name"><span class="name">for</span></span> plugin <span class="keyword">in</span> _.sortBy(site.data[page.data], 'name') %&#125;</span><span class="xml"></span></div><div class="line">          <span class="template-variable">&#123;&#123; partial('_partial/' + page.partial, &#123;plugin: plugin&#125;) &#125;&#125;</span><span class="xml"></span></div><div class="line">        <span class="template-tag">&#123;% <span class="name"><span class="name">endfor</span></span> %&#125;</span><span class="xml"></span></div><div class="line">      <span class="tag">&lt;/<span class="name">ul</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"><span class="built_in">window</span>.SEARCH_INDEX = </span><span class="template-variable">&#123;&#123; lunr_index(site.data[page.data]) &#125;&#125;</span><span class="xml"><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span></div></pre></td></tr></table></figure>
<figure class="highlight django"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line"><span class="xml">D:\Hexo\Hexos\themes\spfk\layout\_partial\plugin.swig</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">li</span> <span class="attr">class</span>=<span class="string">"plugin on"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"</span></span><span class="template-variable">&#123;&#123; plugin.link &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-name"</span> <span class="attr">target</span>=<span class="string">"_blank"</span>&gt;</span></span><span class="template-variable">&#123;&#123; plugin.name &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">  <span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">"plugin-desc"</span>&gt;</span><span class="template-variable">&#123;&#123; plugin.description &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"plugin-tag-list"</span>&gt;</span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">for</span></span> tag <span class="keyword">in</span> plugin.tags %&#125;</span><span class="xml"></span></div><div class="line">      <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#</span></span><span class="template-variable">&#123;&#123; tag &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-tag"</span>&gt;</span></span><span class="template-variable">&#123;&#123; tag &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">endfor</span></span> %&#125;</span><span class="xml"></span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">li</span>&gt;</span></div></pre></td></tr></table></figure>
<figure class="highlight django"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div></pre></td><td class="code"><pre><div class="line"><span class="xml">D:\Hexo\Hexos\themes\spfk\layout\_partial\work.swig</span></div><div class="line"></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">li</span> <span class="attr">class</span>=<span class="string">"plugin on"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"plugin-screenshot"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">img</span> <span class="attr">src</span>=<span class="string">"</span></span><span class="template-variable">&#123;&#123; plugin.imgs &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-screenshot-img"</span>&gt;</span></span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">if</span></span> plugin.preview %&#125;</span><span class="xml"></span></div><div class="line">    <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"</span></span><span class="template-variable">&#123;&#123; plugin.preview &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-preview-link"</span> <span class="attr">target</span>=<span class="string">"_blank"</span>&gt;</span><span class="tag">&lt;<span class="name">i</span> <span class="attr">class</span>=<span class="string">"fa fa-eye"</span>&gt;</span><span class="tag">&lt;/<span class="name">i</span>&gt;</span><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">endif</span></span> %&#125;</span><span class="xml"></span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"</span></span><span class="template-variable">&#123;&#123; plugin.link &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-name"</span> <span class="attr">target</span>=<span class="string">"_blank"</span>&gt;</span></span><span class="template-variable">&#123;&#123; plugin.name &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">  <span class="tag">&lt;<span class="name">p</span> <span class="attr">class</span>=<span class="string">"plugin-desc"</span>&gt;</span><span class="template-variable">&#123;&#123; plugin.description &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"plugin-tag-list"</span>&gt;</span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">for</span></span> tag <span class="keyword">in</span> plugin.tags %&#125;</span><span class="xml"></span></div><div class="line">      <span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#</span></span><span class="template-variable">&#123;&#123; tag &#125;&#125;</span><span class="xml"><span class="tag"><span class="string">"</span> <span class="attr">class</span>=<span class="string">"plugin-tag"</span>&gt;</span></span><span class="template-variable">&#123;&#123; tag &#125;&#125;</span><span class="xml"><span class="tag">&lt;/<span class="name">a</span>&gt;</span></span></div><div class="line">    <span class="template-tag">&#123;% <span class="name"><span class="name">endfor</span></span> %&#125;</span><span class="xml"></span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">li</span>&gt;</span></div></pre></td></tr></table></figure>
<figure class="highlight less"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">引入样式文件</div><div class="line"><span class="attribute">D</span>:\Hexo\Hexos\themes\spfk\source\css\style.styl</div><div class="line"></div><div class="line"><span class="variable">@import</span> <span class="string">"_partial/plugins"</span></div></pre></td></tr></table></figure>
<blockquote>
<p>修改样式</p>
</blockquote>
<figure class="highlight less"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div><div class="line">70</div><div class="line">71</div><div class="line">72</div><div class="line">73</div><div class="line">74</div><div class="line">75</div><div class="line">76</div><div class="line">77</div><div class="line">78</div><div class="line">79</div><div class="line">80</div><div class="line">81</div><div class="line">82</div><div class="line">83</div><div class="line">84</div><div class="line">85</div><div class="line">86</div><div class="line">87</div><div class="line">88</div><div class="line">89</div><div class="line">90</div><div class="line">91</div><div class="line">92</div><div class="line">93</div><div class="line">94</div><div class="line">95</div><div class="line">96</div><div class="line">97</div><div class="line">98</div><div class="line">99</div><div class="line">100</div><div class="line">101</div><div class="line">102</div><div class="line">103</div><div class="line">104</div><div class="line">105</div><div class="line">106</div><div class="line">107</div><div class="line">108</div><div class="line">109</div><div class="line">110</div><div class="line">111</div><div class="line">112</div><div class="line">113</div><div class="line">114</div><div class="line">115</div><div class="line">116</div><div class="line">117</div><div class="line">118</div><div class="line">119</div><div class="line">120</div><div class="line">121</div><div class="line">122</div><div class="line">123</div><div class="line">124</div><div class="line">125</div><div class="line">126</div></pre></td><td class="code"><pre><div class="line"><span class="attribute">D</span>:\Hexo\Hexos\themes\spfk\layout\_partial\plugin.swig</div><div class="line"></div><div class="line">#plugin-list-header</div><div class="line">  clearfix()</div><div class="line">  <span class="attribute">margin</span>: <span class="number">40px</span> <span class="number">0</span></div><div class="line"></div><div class="line">#plugin-list-title</div><div class="line">  <span class="attribute">font-family</span>: font-title</div><div class="line">  <span class="attribute">font-size</span>: <span class="number">36px</span></div><div class="line">  <span class="attribute">font-weight</span>: <span class="number">300</span></div><div class="line">  <span class="attribute">line-height</span>: <span class="number">1</span></div><div class="line">  <span class="attribute">float</span>: left</div><div class="line"></div><div class="line">#plugin-list-count</div><div class="line">  <span class="attribute">color</span>: color-gray</div><div class="line">  <span class="attribute">padding-top</span>: <span class="number">1em</span></div><div class="line">  <span class="attribute">text-align</span>: right</div><div class="line">  <span class="variable">@media</span> mq-normal</div><div class="line">    <span class="attribute">float</span>: right</div><div class="line">    <span class="attribute">line-height</span>: <span class="number">40px</span></div><div class="line">    <span class="attribute">padding-top</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">padding-right</span>: <span class="number">15px</span></div><div class="line"></div><div class="line">#plugin-search-input</div><div class="line">  <span class="attribute">font-size</span>: <span class="number">16px</span></div><div class="line">  <span class="attribute">font-family</span>: inherit</div><div class="line">  <span class="attribute">-webkit-appearance</span>: none</div><div class="line">  <span class="attribute">border</span>: <span class="number">1px</span> solid color-border</div><div class="line">  <span class="attribute">padding</span>: <span class="number">10px</span> <span class="number">10px</span></div><div class="line">  <span class="attribute">width</span>: <span class="number">100%</span></div><div class="line">  <span class="attribute">margin-top</span>: <span class="number">25px</span></div><div class="line">  <span class="variable">@media</span> mq-normal</div><div class="line">    <span class="attribute">float</span>: right</div><div class="line">    <span class="attribute">width</span>: <span class="number">50%</span></div><div class="line">    <span class="attribute">margin-top</span>: <span class="number">0</span></div><div class="line"></div><div class="line">#plugin-list</div><div class="line">  <span class="attribute">margin</span>: <span class="number">40px</span> -<span class="number">20px</span></div><div class="line">  <span class="attribute">display</span>: flex</div><div class="line">  <span class="attribute">flex-flow</span>: column</div><div class="line">  <span class="variable">@media</span> mq-tablet</div><div class="line">    <span class="attribute">flex-flow</span>: row wrap</div><div class="line"></div><div class="line">.plugin</div><div class="line">  <span class="attribute">display</span>: none</div><div class="line">  <span class="attribute">padding</span>: <span class="number">20px</span></div><div class="line">  <span class="variable">@media</span> mq-tablet</div><div class="line">    <span class="attribute">flex</span>: <span class="number">0</span> <span class="number">0</span> <span class="number">50%</span></div><div class="line">  <span class="variable">@media</span> mq-normal</div><div class="line">    <span class="attribute">flex</span>: <span class="number">0</span> <span class="number">0</span> (<span class="number">100</span> / <span class="number">3</span>)%</div><div class="line">  &amp;.on</div><div class="line">    <span class="attribute">display</span>: block</div><div class="line"></div><div class="line">.plugin-name</div><div class="line">  <span class="attribute">font-family</span>: font-title</div><div class="line">  <span class="attribute">font-weight</span>: bold</div><div class="line">  <span class="attribute">color</span>: color-link</div><div class="line">  <span class="attribute">font-size</span>: <span class="number">20px</span></div><div class="line">  <span class="attribute">text-decoration</span>: none</div><div class="line">  <span class="attribute">line-height</span>: <span class="number">1</span></div><div class="line">  &amp;:hover</div><div class="line">    <span class="attribute">color</span>: color-link-hover</div><div class="line"></div><div class="line">.plugin-desc</div><div class="line">  <span class="attribute">line-height</span>: line-height</div><div class="line">  <span class="attribute">margin</span>: <span class="number">1em</span> <span class="number">0</span></div><div class="line"></div><div class="line">.plugin-tag-list</div><div class="line">  clearfix()</div><div class="line">  <span class="attribute">line-height</span>: <span class="number">1.3</span></div><div class="line"></div><div class="line">.plugin-tag</div><div class="line">  <span class="attribute">color</span>: color-gray</div><div class="line">  <span class="attribute">font-size</span>: <span class="number">0.9em</span></div><div class="line">  <span class="attribute">text-decoration</span>: none</div><div class="line">  <span class="attribute">float</span>: left</div><div class="line">  <span class="attribute">margin-right</span>: <span class="number">10px</span></div><div class="line">  &amp;:hover</div><div class="line">    <span class="attribute">color</span>: color-link-hover</div><div class="line">  &amp;:before</div><div class="line">    <span class="attribute">content</span>: <span class="string">"#"</span></div><div class="line"></div><div class="line">.plugin-screenshot</div><div class="line">  <span class="attribute">margin-bottom</span>: <span class="number">15px</span></div><div class="line">  <span class="attribute">position</span>: relative</div><div class="line">  <span class="attribute">padding-top</span>: (<span class="number">10</span> / <span class="number">16</span> * <span class="number">100</span>)% <span class="comment">// 16:10 ratio</span></div><div class="line">  <span class="attribute">height</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">overflow</span>: hidden</div><div class="line"></div><div class="line">.plugin-screenshot-img</div><div class="line">  <span class="attribute">position</span>: absolute</div><div class="line">  <span class="attribute">top</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">left</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">width</span>: <span class="number">100%</span></div><div class="line">  <span class="attribute">height</span>: auto</div><div class="line"></div><div class="line">.plugin-preview-link</div><div class="line">  <span class="attribute">position</span>: absolute</div><div class="line">  <span class="attribute">top</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">left</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">width</span>: <span class="number">100%</span></div><div class="line">  <span class="attribute">height</span>: <span class="number">100%</span></div><div class="line">  <span class="attribute">background</span>: rgba(<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0.7</span>)</div><div class="line">  <span class="attribute">color</span>: <span class="number">#fff</span></div><div class="line">  <span class="attribute">text-align</span>: center</div><div class="line">  <span class="attribute">opacity</span>: <span class="number">0</span></div><div class="line">  <span class="attribute">transition</span>: <span class="number">0.15s</span></div><div class="line">  &amp;:hover</div><div class="line">    <span class="attribute">opacity</span>: <span class="number">1</span></div><div class="line">    .fa</div><div class="line">      <span class="attribute">opacity</span>: <span class="number">1</span></div><div class="line">      <span class="attribute">transform</span>: scale(<span class="number">1</span>)</div><div class="line">  .fa</div><div class="line">    <span class="attribute">position</span>: absolute</div><div class="line">    <span class="attribute">top</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">left</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">bottom</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">right</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">margin</span>: auto</div><div class="line">    <span class="attribute">font-size</span>: <span class="number">50px</span></div><div class="line">    <span class="attribute">width</span>: <span class="variable">@font-size</span></div><div class="line">    <span class="attribute">height</span>: <span class="variable">@font-size</span></div><div class="line">    <span class="attribute">opacity</span>: <span class="number">0</span></div><div class="line">    <span class="attribute">transform</span>: scale(<span class="number">6</span>)</div><div class="line">    <span class="attribute">transition</span>: <span class="number">0.2s</span></div><div class="line">    <span class="attribute">transition-delay</span>: <span class="number">0.15s</span></div></pre></td></tr></table></figure>
<h2 id="自定义挂件"><a href="#自定义挂件" class="headerlink" title="自定义挂件"></a>自定义挂件</h2><p>除了默认已提供的挂件外，你还可以自定义自己的小挂件，在hexo\themes\modernist\layout_widget\下，新建自己的ejs文件，如myWidget.ejs，然后在配置文件hexo\themes\modernist_config.yml中配置。<br><figure class="highlight taggerscript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">widgets:</div><div class="line">  - myWidget</div><div class="line">用上述方法可以添加新浪微博小挂件。</div><div class="line"></div><div class="line">生成自己的微博组件。</div><div class="line">添加hexo<span class="symbol">\t</span>hemes<span class="symbol">\m</span>odernist<span class="symbol">\l</span>ayout<span class="symbol">\_</span>widget<span class="symbol">\w</span>eibo.ejs文件。</div><div class="line">配置hexo<span class="symbol">\t</span>hemes<span class="symbol">\m</span>odernist<span class="symbol">\_</span>config.yml。</div></pre></td></tr></table></figure></p>
<h2 id="Hexo语法高亮"><a href="#Hexo语法高亮" class="headerlink" title="Hexo语法高亮"></a>Hexo语法高亮</h2><p>查阅格式高亮代码，了解到本主题，通过特定的规律进行语法高亮！好像无法识别不同代码的语法高亮！</p>
<p>测试：</p>
<p>通过测试代码，查看后台代码逻辑，了解到可以识别Apache、C++、bash等，还有部分不可识别。那么这个主题用的是什么的语法高亮？</p>
<p>代码code，table-gutter-pre是代码前面的序号。class=”highlight apache”<br><figure class="highlight clean"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div></pre></td><td class="code"><pre><div class="line">J:\Hexo\Hexo\themes\spfk\source\css\_partial\highlight.styl</div><div class="line"></div><div class="line"><span class="comment">// https://github.com/Jimmey-Jiang/hexo-theme-spfk</span></div><div class="line"></div><div class="line"><span class="keyword">code</span>-bgc = #<span class="number">002</span>B36</div><div class="line"><span class="keyword">code</span>-tag = #F92672</div><div class="line"><span class="keyword">code</span>-attr = #A6E22E</div><div class="line"><span class="keyword">code</span>-word = #FFFFFF</div><div class="line"><span class="keyword">code</span>-value = #E6DB74</div><div class="line"><span class="keyword">code</span>-number = #<span class="number">9E90</span>FF</div><div class="line"><span class="keyword">code</span>-keyword = #<span class="number">66</span>D9EF</div><div class="line"><span class="keyword">code</span>-comment = #<span class="number">75715</span>E</div><div class="line"><span class="keyword">code</span>-argument = #FD971F</div><div class="line"></div><div class="line">$<span class="keyword">code</span>-block</div><div class="line">  background: <span class="keyword">code</span>-bgc</div><div class="line">  margin: <span class="number">10</span>px <span class="number">0</span></div><div class="line">  padding: <span class="number">10</span>px <span class="number">10</span>px</div><div class="line">  overflow: auto</div><div class="line">  color: #<span class="number">4</span>C4C4C</div><div class="line">  line-height: font-size * line-height</div></pre></td></tr></table></figure></p>
<p>参考：<br>highlight.js：<br>Demo <a href="https://highlightjs.org/static/demo/" target="_blank" rel="external">https://highlightjs.org/static/demo/</a><br>Solarized Dark<br>Atelier Sulphurpool Dark<br>文档：<a href="http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html" target="_blank" rel="external">http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html</a><br>下载：<a href="https://highlightjs.org/download/" target="_blank" rel="external">https://highlightjs.org/download/</a></p>
<h2 id="首页添加loading效果"><a href="#首页添加loading效果" class="headerlink" title="首页添加loading效果"></a>首页添加loading效果</h2><p>themes\spfk\layout\index.ejs</p>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div></pre></td><td class="code"><pre><div class="line"><span class="xml"><span class="tag">&lt;<span class="name">link</span> <span class="attr">rel</span>=<span class="string">"stylesheet"</span> <span class="attr">href</span>=<span class="string">"css/loading-style.css"</span>&gt;</span></span></div><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"loader-wrapper"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"loader"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">%-</span></span><span class="ruby"> partial(<span class="string">'_partial/archive'</span>, &#123;<span class="symbol">pagination:</span> <span class="number">2</span>, <span class="symbol">index:</span> <span class="literal">true</span>&#125;) </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"><span class="comment">&lt;!-- loading --&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="handlebars"><span class="xml">window.jQuery || document.write('<span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">"js/jquery-1.9.1.min.js"</span>&gt;</span><span class="handlebars"><span class="xml"><span class="tag">&lt;<span class="name">\</span>/<span class="attr">script</span>&gt;</span>')</span></span></span></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span><span class="javascript"></span></div><div class="line">    $(<span class="built_in">window</span>).load(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;                              <span class="comment">// makes sure the whole site is loaded</span></div><div class="line">        $(<span class="string">'#loader'</span>).fadeOut();                              <span class="comment">// will first fade out the loading animation</span></div><div class="line">            $(<span class="string">'#loader-wrapper'</span>).delay(<span class="number">350</span>).fadeOut(<span class="string">'slow'</span>); <span class="comment">// will fade out the white DIV that covers the website.</span></div><div class="line">        $(<span class="string">'body'</span>).delay(<span class="number">350</span>).css(&#123;<span class="string">'overflow-y'</span>:<span class="string">'visible'</span>&#125;);</div><div class="line">    &#125;)</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
<h2 id="LoadingBar页面顶部加载进度条"><a href="#LoadingBar页面顶部加载进度条" class="headerlink" title="LoadingBar页面顶部加载进度条"></a>LoadingBar页面顶部加载进度条</h2><p>J:\Hexo\Hexo\themes\spfk\layout_partial\head.ejs</p>
<figure class="highlight erb"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line"><span class="xml"><span class="comment">&lt;!-- 加载特效 --&gt;</span></span></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> <span class="keyword">if</span>(theme.animate) &#123; </span><span class="xml"><span class="tag">%&gt;</span></span></div><div class="line"> <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">"/js/pace.js"</span>&gt;</span><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">link</span> <span class="attr">href</span>=<span class="string">"/css/pace/pace-theme-flash.css"</span> <span class="attr">rel</span>=<span class="string">"stylesheet"</span> /&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">%</span></span><span class="ruby"> &#125; </span><span class="xml"><span class="tag">%&gt;</span></span></div></pre></td></tr></table></figure>
<h2 id="highlight-js"><a href="#highlight-js" class="headerlink" title="highlight.js"></a>highlight.js</h2><figure class="highlight kotlin"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div></pre></td><td class="code"><pre><div class="line">J:\Hexo\Hexo\node_modules\hexo-renderer-marked\node_modules\hexo-util\lib\highlight.js:</div><div class="line">   <span class="number">37</span>    &#125;</div><div class="line">   <span class="number">38</span>  </div><div class="line">   <span class="number">39</span>:   result += <span class="string">'&lt;figure class="highlight'</span> + (<span class="keyword">data</span>.language ? <span class="string">' '</span> + <span class="keyword">data</span>.language : <span class="string">''</span>) + <span class="string">'"'</span> + <span class="string">'data-lang="'</span> + (<span class="keyword">data</span>.language ? <span class="string">' '</span> + <span class="keyword">data</span>.language : <span class="string">''</span>) + <span class="string">'"&gt;'</span>;</div><div class="line">   <span class="number">40</span>  </div><div class="line">   <span class="number">41</span>    <span class="keyword">if</span> (caption) &#123;</div><div class="line"></div><div class="line">J:\Hexo\Hexo\node_modules\hexo-util\lib\highlight.js:</div><div class="line">   <span class="number">33</span>    &#125;</div><div class="line">   <span class="number">34</span>  </div><div class="line">   <span class="number">35</span>:   result += <span class="string">'&lt;figure class="highlight'</span> + (<span class="keyword">data</span>.language ? <span class="string">' '</span> + <span class="keyword">data</span>.language : <span class="string">''</span>) + <span class="string">'"&gt;'</span>;</div><div class="line">   <span class="number">36</span>  </div><div class="line">   <span class="number">37</span>    <span class="keyword">if</span> (caption)&#123;</div><div class="line"></div><div class="line"><span class="number">6</span> matches across <span class="number">2</span> files</div><div class="line"></div><div class="line">  result += <span class="string">'&lt;figure class="highlight'</span> + (<span class="keyword">data</span>.language ? <span class="string">' '</span> + <span class="keyword">data</span>.language : <span class="string">''</span>) + <span class="string">'"'</span> + <span class="string">'data-lang="'</span> + (<span class="keyword">data</span>.language ? <span class="string">' '</span> + <span class="keyword">data</span>.language : <span class="string">''</span>) + <span class="string">'"&gt;'</span>;</div></pre></td></tr></table></figure>
<h2 id="Hexo插件"><a href="#Hexo插件" class="headerlink" title="Hexo插件"></a>Hexo插件</h2><p><a href="&quot;https://swiftype.com/&quot;">Swiftype</a></p>
<p><a href="&quot;https://dashboard.tinysou.com/&quot;">微搜索</a></p>
<p><a href="&quot;http://busuanzi.ibruce.info/&quot;">不蒜子</a></p>
<p><a href="&quot;http://sitecenter.baidu.com/sc-web/&quot;">百度统计</a></p>
<p><a href="&quot;http://www.cnzz.com/&quot;">CNZZ数据</a></p>
<p><a href="&quot;http://fontawesome.io/&quot;">Font Awesome</a></p>
<p><a href="&quot;http://naotu.baidu.com/edit.html&quot;">百度脑图</a></p>
<p><a href="&quot;http://www.easyicon.net/&quot;">ICON图标</a></p>
<p><a href="&quot;http://fontawesome.dashgame.com/&quot;">Font Awesome</a></p>
<p><a href="&quot;https://freeiconmaker.com/&quot;">FREE Icon Maker</a></p>
<p><a href="&quot;https://icomoon.io/&quot;">Icon Font</a></p>
<p><a href="&quot;http://www.ico.la/&quot;">在线ico</a></p>
<p><a href="&quot;https://icomoon.io/&quot;">IcoMoon</a></p>
<p><a href="&quot;https://disqus.com/&quot;">Disqus</a></p>
<p><a href="&quot;http://Jimmey-Jiang.duoshuo.com/admin/&quot;">多说评论</a></p>
<p><a href="&quot;http://open.mail.qq.com/cgi-bin/dy_template?sid=8EZP69fLJrYnKjRi&amp;t=index&amp;sub=0&amp;r=2a79875e99ef37e39c7438e990f66d32&quot;">QQ邮箱开放平台</a></p>
<p><a href="&quot;https://portal.qiniu.com/&quot;">七牛云存储</a></p>
<p><a href="&quot;http://share.baidu.com/&quot;">百度分享</a></p>
<p><a href="&quot;http://www.addthis.com/&quot;">AddThis</a></p>
<p><a href="&quot;http://ask.imiker.com/question/6970&quot;">分享一个方法解决Facebook,Linkedin,Twitter,Google+等SNS平台太多更新不过来的问题。 - 米课问答</a></p>
<p><a href="&quot;https://gitcafe.com/&quot;">GitCafe</a></p>
<p><a href="&quot;https://coding.net/user&quot;">Coding.Net</a></p>
<p><a href="&quot;https://github.com/&quot;">GitHub</a></p>

      
      
        <div class="page-reward">
          <p><a href="javascript:void(0)" onclick="dashangToggle()" class="dashang">赏</a></p>
          <div class="hide_box"></div>
          <div class="shang_box">
            <a class="shang_close" href="javascript:void(0)" onclick="dashangToggle()">×</a>
            <div class="shang_tit">
              <p>纯属好玩</p>
            </div>
            <div class="shang_payimg">
              <img src="/img/alipayimg.jpg" alt="扫码支持" title="扫一扫" />
            </div>
              <div class="pay_explain">扫码打赏，你说多少就多少</div>
            <div class="shang_payselect">
              
                <div class="pay_item checked" data-id="alipay">
                  <span class="radiobox"></span>
                  <span class="pay_logo"><img src="/img/alipay.png" alt="支付宝" /></span>
                </div>
              
              
                <div class="pay_item" data-id="wechat">
                  <span class="radiobox"></span>
                  <span class="pay_logo"><img src="/img/weixin.png" alt="微信" /></span>
                </div>
              
            </div>
            <div class="shang_info">
              <p>打开<span id="shang_pay_txt">支付宝</span>扫一扫，即可进行扫码打赏哦</p>
            </div>
          </div>
        </div>
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
        <script type="text/javascript">
          $(".pay_item").click(function(){
            $(this).addClass('checked').siblings('.pay_item').removeClass('checked');
            var dataid=$(this).attr('data-id');
            $(".shang_payimg img").attr("src","/img/"+dataid+"img.jpg");
            $("#shang_pay_txt").text(dataid=="alipay"?"支付宝":"微信");
          });
          function dashangToggle(){
            window._hmt.push(['_trackEvent', 'pay', 'click', '赏'])
            $(".hide_box").fadeToggle();
            $(".shang_box").fadeToggle();
          }
        </script>
      
    </div>
    
  </div>
  
    
    <div class="copyright">
        <p><span>本文标题:</span><a href="/2015/12/27/Hexo/HexoPlug/">Hexo插件安装</a></p>
        <p><span>文章作者:</span><a href="/" title="访问 安与生 的个人博客">安与生</a></p>
        <p><span>发布时间:</span>2015年12月27日 - 18时29分</p>
        <p><span>最后更新:</span>2017年07月28日 - 18时54分</p>
        <p>
            <span>原始链接:</span><a class="post-url" href="/2015/12/27/Hexo/HexoPlug/" title="Hexo插件安装">http://Jimmey-Jiang.github.io/2015/12/27/Hexo/HexoPlug/</a>
            <span class="copy-path" data-clipboard-text="原文: http://Jimmey-Jiang.github.io/2015/12/27/Hexo/HexoPlug/　　作者: 安与生" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span>
            <script src="/js/clipboard.min.js"></script>
            <script> var clipboard = new Clipboard('.copy-path'); </script>
        </p>
        <p>
            <span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/cn/" title="中国大陆 (CC BY-NC-SA 3.0 CN)" target = "_blank">"署名-非商用-相同方式共享 3.0"</a> 转载请保留原文链接及作者。
        </p>
    </div>



<nav id="article-nav">
  
    <a href="/2015/12/27/Hexo/HexoBug/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption"><</strong>
      <div class="article-nav-title">
        
          Hexo bug
        
      </div>
    </a>
  
  
    <a href="/2015/12/27/Hexo/Hexo/" id="article-nav-older" class="article-nav-link-wrap">
      <div class="article-nav-title">Hexo的使用介绍</div>
      <strong class="article-nav-caption">></strong>
    </a>
  
</nav>

  
</article>

    <div id="toc" class="toc-article">
    <strong class="toc-title">文章目录</strong>
    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#同步instagram图片"><span class="toc-number">1.</span> <span class="toc-text">同步instagram图片</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#分享按钮"><span class="toc-number">2.</span> <span class="toc-text">分享按钮</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#百度统计"><span class="toc-number">3.</span> <span class="toc-text">百度统计</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#不蒜子"><span class="toc-number">4.</span> <span class="toc-text">不蒜子</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#版权声明"><span class="toc-number">5.</span> <span class="toc-text">版权声明</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#社交账号图标修改"><span class="toc-number">6.</span> <span class="toc-text">社交账号图标修改</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#站内搜索框"><span class="toc-number">7.</span> <span class="toc-text">站内搜索框</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#站点Swiftype搜索框"><span class="toc-number">8.</span> <span class="toc-text">站点Swiftype搜索框</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#RSS不显示"><span class="toc-number">9.</span> <span class="toc-text">RSS不显示</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#sitemap网站地图"><span class="toc-number">10.</span> <span class="toc-text">sitemap网站地图</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#多说评论插件"><span class="toc-number">11.</span> <span class="toc-text">多说评论插件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#为Hexo博客添加目录"><span class="toc-number">12.</span> <span class="toc-text">为Hexo博客添加目录</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#插入自定义页面"><span class="toc-number">13.</span> <span class="toc-text">插入自定义页面</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#自定义挂件"><span class="toc-number">14.</span> <span class="toc-text">自定义挂件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Hexo语法高亮"><span class="toc-number">15.</span> <span class="toc-text">Hexo语法高亮</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#首页添加loading效果"><span class="toc-number">16.</span> <span class="toc-text">首页添加loading效果</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#LoadingBar页面顶部加载进度条"><span class="toc-number">17.</span> <span class="toc-text">LoadingBar页面顶部加载进度条</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#highlight-js"><span class="toc-number">18.</span> <span class="toc-text">highlight.js</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Hexo插件"><span class="toc-number">19.</span> <span class="toc-text">Hexo插件</span></a></li></ol>
</div>
<input type="button" id="tocButton" value="隐藏目录"  title="点击按钮隐藏或者显示文章目录">

<script src="https://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script>
<script>
    var valueHide = "隐藏目录";
    var valueShow = "显示目录";

    if ($(".left-col").is(":hidden")) {
        $("#tocButton").attr("value", valueShow);
    }
    $("#tocButton").click(function() {
        if ($("#toc").is(":hidden")) {
            $("#tocButton").attr("value", valueHide);
            $("#toc").slideDown(320);
        }
        else {
            $("#tocButton").attr("value", valueShow);
            $("#toc").slideUp(350);
        }
    })
    if ($(".toc").length < 1) {
        $("#toc, #tocButton").hide();
    }
</script>





<div class="bdsharebuttonbox">
	<a href="#" class="fx fa-weibo bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
	<a href="#" class="fx fa-weixin bds_weixin" data-cmd="weixin" title="分享到微信"></a>
	<a href="#" class="fx fa-qq bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
	<a href="#" class="fx fa-facebook-official bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
	<a href="#" class="fx fa-twitter bds_twi" data-cmd="twi" title="分享到Twitter"></a>
	<a href="#" class="fx fa-linkedin bds_linkedin" data-cmd="linkedin" title="分享到linkedin"></a>
	<a href="#" class="fx fa-files-o bds_copy" data-cmd="copy" title="分享到复制网址"></a>
</div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"2","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>




    
        <div id="gitments"></div>
<script src="/js/gitment.browser.js"></script>
<script>
    var gitment = new Gitment({
      id: window.location.pathname,
      owner: 'Jimmey-Jiang',
      repo: 'Jimmey-Jiang.github.io',
      oauth: {
        client_id: '7f50019c6a02c37e7aca',
        client_secret: 'd583910e6ae1492b375796d2c82efcda2cc67aae',
      },
    })
    gitment.render('gitments')
</script>
    



    <div class="scroll" id="post-nav-button">
        
            <a href="/2015/12/27/Hexo/HexoBug/" title="上一篇: Hexo bug">
                <i class="fa fa-angle-left"></i>
            </a>
        
        <a title="文章列表"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a>
        
            <a href="/2015/12/27/Hexo/Hexo/" title="下一篇: Hexo的使用介绍">
                <i class="fa fa-angle-right"></i>
            </a>
        
    </div>
    <ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2017/08/29/Tool/GitWorkflows/">Git Workflows</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/19/Tool/Git/">Git速查手册</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/18/FrontFrame/Vue/VueComponents/">Vue组件探秘</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/18/Induce/InduceSass/">深入Sass</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/18/FrontFrame/Vue/KeepAlive/">keep-alive最佳实践</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/18/Induce/CSS/CssLowFrequency/">CSS低频属性</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/08/02/Tool/Terminal/">Terminal配置</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/07/25/Induce/Weixin/JS-SDK/">WeChat SDK</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/07/12/Induce/Hack/Canvas/">浏览器常见Bug——Canvas</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/04/25/FrontFrame/Vue/Vuex/">Vuex</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/03/25/Induce/HTML/Video/">Mobile Video</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/03/25/FrontFrame/Vue/VueRouter/">Vue Router</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/03/21/Tool/Sublime/sublimeMac/">Sublime Mac 快捷键</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/02/14/FrontFrame/React/React/">React初探</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/01/02/Induce/CSS/CSSElementAlign/">用CSS实现元素垂直居中方案</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/31/Skill/norm/normCSS/">CSS前端代码规范</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/31/Skill/norm/normjs/">前端代码规范Javascript</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/31/Skill/norm/normhtml/">HTML前端代码规范</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/31/Skill/norm/normdev/">前端开发代码规范</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/27/FrontFrame/ReactNative/Components/RNCText/">React Native Text</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/27/FrontFrame/ReactNative/Components/RNCTextInput/">React Native TextInput</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/27/FrontFrame/ReactNative/Components/RNCImage/">React Native Image</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/27/FrontFrame/ReactNative/Components/RNComponents/">React Native 组件</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/26/FrontFrame/ReactNative/RNTest/">React Native 实战封装组件</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/26/FrontFrame/ReactNative/RNBasics/">React Native 基础</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/25/FrontFrame/ReactNative/RNSetOX/">React Native IOS环境搭建</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/25/FrontFrame/ReactNative/RNTools/">React Native开发工具</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/25/FrontFrame/ReactNative/RNSetAndroid/">React Native Android环境搭建（Window）</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/12/25/FrontFrame/ReactNative/RN/">React Native初探</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/05/08/Induce/Mobile/MobileGuide/">移动Web解决方案</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/04/02/Induce/JavaScript/JSInputSearch/">Input输入框的案例</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/04/02/Plug/Gulp/InduceGulp/">Gulp前端构建工具</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/04/02/Plug/Sublime/SublimeOmniMarkupPreviewer/">OmniMarkupPreviewer</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/04/02/Induce/HTML/HtmlRem/">移动H5自适应布局</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/03/02/Demo/TextShow/">BOOS信息展示与收缩</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/02/28/Demo/MobileRotate/">移动端横屏提示动画</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/02/27/Induce/Skill/OOCSS/">面向对象的CSS样式</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/02/27/Induce/Mobile/MobliePC/">关于移动端界面在PC端显示的实现</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/02/20/Induce/Node/NodeJsWeb/">Node.js实战 建立简单的Web服务器</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/02/20/Induce/CSS/animation/">CSS3动画探秘</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/28/Induce/Mobile/Mobile-knowledge/">移动前端知识总结</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/27/Induce/Ajax/Ajax/">Ajax学习计划</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/20/Plug/ChromePlug/">前端Chrome插件</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/19/Induce/JavaScript/JSTip/">原生JS TitleTip</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/19/Induce/Ajax/AjaxStatus/">Ajax Status请求状态</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/16/Interview/FrontMap/">【转】2015-2016前端知识体系</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/15/Induce/JavaScript/NativeJS/">原生JavaScript探索</a></li><li class="post-list-item"><a class="post-list-link" href="/2016/01/13/Induce/HTML/HTMLbase/">HTML结构零散</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/27/Hexo/GitHubHexo/">使用GitHub搭建Hexo博客</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/27/Hexo/HexoBug/">Hexo bug</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/27/Hexo/HexoPlug/">Hexo插件安装</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/27/Hexo/Hexo/">Hexo的使用介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/27/Hexo/HexoTheme/">Hexo 主题：SPFK</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/26/Skill/win7Set/">电脑优化相关</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/25/Induce/CSS/CssTips/">CSS小技巧收藏</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/25/Interview/WebFront/">web前端职业规划</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/25/Induce/HTML/media/">响应式布局</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/25/Induce/CSS/CSS/">CSS学习计划</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/24/Tool/Sublime/Sublimemarkdown/">Markdown使用指南</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/21/Tool/Sublime/Sublimebest/">Sublime Text历练</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/21/Induce/JavaScript/JQueryCDN/">CDN公共库</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/21/Plug/Sublime/SublimePackage/">Sublime插件</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/21/Demohttps://tuchong.com/1496450//">前端资源导航</a></li><li class="post-list-item"><a class="post-list-link" href="/2015/12/11/Skill/BusyFront/">Busy前端工作室</a></li></ul>
    <script src="https://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script>
    <script>
        $(".post-list").addClass("toc-article");
        $(".post-list-item a").attr("target","_blank");
        $("#post-nav-button > a:nth-child(2)").click(function() {
            $(".fa-bars, .fa-times").toggle();
            $(".post-list").toggle(300);
            if ($(".toc").length > 0) {
                $("#toc, #tocButton").toggle(200, function() {
                    if ($(".switch-area").is(":visible")) {
                        $("#tocButton").attr("value", valueHide);
                        }
                    })
            }
            else {
            }
        })
    </script>



    <script>
        
    </script>
</div>
      <footer id="footer">
    <div class="outer">
        <div id="footer-info">
            <div class="footer-left">
                &copy; 2017 安与生
            </div>
            <div class="footer-right">
                <a href="http://hexo.io/" target="_blank">Hexo</a>  Theme <a href="https://github.com/Jimmey-Jiang/hexo-theme-spfk" target="_blank">spfk</a> by Jimmey-Jiang
            </div>
        </div>
        
            <div class="visit">
                
                    <span id="busuanzi_container_site_pv" style='display:none'>
                        <span id="site-visit" >海贼到访数: 
                            <span id="busuanzi_value_site_uv"></span>
                        </span>
                    </span>
                
                
                    <span>, </span>
                
                
                    <span id="busuanzi_container_page_pv" style='display:none'>
                        <span id="page-visit">本页阅读量: 
                            <span id="busuanzi_value_page_pv"></span>
                        </span>
                    </span>
                
            </div>
        
    </div>
</footer>

    </div>
    <script src="https://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script>
<script src="/js/main.js"></script>

    <script>
        $(document).ready(function() {
            var backgroundnum = 24;
            var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum));
            $("#mobile-nav").css({"background-image": backgroundimg,"background-size": "cover","background-position": "center"});
            $(".left-col").css({"background-image": backgroundimg,"background-size": "cover","background-position": "center"});
        })
    </script>




	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?819b1c6493df653afb8c7846bc4b8db6";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>


<div class="scroll" id="scroll">
    <a href="#"><i class="fa fa-arrow-up"></i></a>
    <a href="#comments"><i class="fa fa-comments-o"></i></a>
    <a href="#footer"><i class="fa fa-arrow-down"></i></a>
</div>
<script>
    $(document).ready(function() {
        if ($("#comments").length < 1) {
            $("#scroll > a:nth-child(2)").hide();
        };
    })
</script>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>

  <script language="javascript">
    $(function() {
        $("a[title]").each(function() {
            var a = $(this);
            var title = a.attr('title');
            if (title == undefined || title == "") return;
            a.data('title', title).removeAttr('title').hover(

            function() {
                var offset = a.offset();
                $("<div id=\"anchortitlecontainer\"></div>").appendTo($("body")).html(title).css({
                    top: offset.top - a.outerHeight() - 15,
                    left: offset.left + a.outerWidth()/2 + 1
                }).fadeIn(function() {
                    var pop = $(this);
                    setTimeout(function() {
                        pop.remove();
                    }, pop.text().length * 800);
                });
            }, function() {
                $("#anchortitlecontainer").remove();
            });
        });
    });
</script>


    <script type="text/javascript">
      window.onload = function(){
        document.getElementById("search").onclick = function(){
            console.log("search")
            search();
        }
      }
      function search(){
        (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
        (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
        e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
        })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

        _st('install','A1Pz-LKMXbrzcFg2FWi6','2.0.0');
      }
    </script>

  </div>
</body>
</html>